Quantcast
Channel: SCN : Blog List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 221

How to filter a table by it´s linenumber

$
0
0

Hi,

 

I would like to share a way to filter a table by the line numbers of its rows.

Firstly, there are some restrictions on it´s use :

 

1 - The line numbers in this solution is based on the default ordering and the position of each object in the table elements;

 

2 - If you re-order or re-arrange the table , you´ll have to alter the formula.

That´s said, , let´s start!

 

I´ll use a query based on e-fashion that returns [Year], [Month] and [Quantity sold] , which gives me the following table :

 

table.jpg

 

 

 

I´ll need three variables :

[linenumber], a measure variable . = 1 +Previous(Self), this will give me the number of lines

[ln]  a dimension variable = [linenumber] and another dimension variable [LineNumber] =  =NoFilter([ln] ForEach ([Year];[Month];[ln]))

 

The redefinition of the context must follow the order of the dim objects inside the table , if the table is re-arranged, the contexto redefinition in the formula must be altered to consider it.

 

The report should be filtered by [LineNuber]

 

The next Picture, shows the table filtered by [LineNumber] between 5 and 10



table 2.jpg




Cheers,

Rogerio


Viewing all articles
Browse latest Browse all 221

Trending Articles