Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a pivot table with 2 dimensions. Line1, Line2
Column is : Company
I have a variable slider : vSlider Values ranging from 0- 10 that controls the number of companies to display
Company A Company B Company C
Line1 >
Line2>
Expression is : sum ( sales)
The ranking of the entire table needs to be based on this expression :
If Line1 = 'abc' , rank(sales)
This expression is used in 'Sorting' for 'Company' dimension but it only ranks when Line1 'abc' is selected.
How can I get the entire pivot table to rank based on this expression ?
Show top 'N' companies by sales based on Line1='abc'
The correct syntax for the expression would be
If(Line1 = 'abc', rank(sales))
but perhaps you need
Rank(If(Line1 = 'abc', sales))