Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a stacked bar chart with two dimensions -
Dimension 1 - Product Categories
Dimension 2 - Sub products - A,B,C
Measure - Count of unique id [ I have used expression in order to show 100% stacks - Count([Unique Id])/count (total <Product Category> [Unique Id])
So my 100% stacked chart has y-axis as Product categories and and color of bars is sub product and x-axis as id%.
I need to show top 10 product categories which has highest % of B. Can you tell how can I write this expression
=sum(aggr(if(rank(count([Unique Id])))<=10,count( [Unique Id])), [Dim1],[Dim2]))
Hi Vikas,
This expression will not sort based on values of 'B' [ Dim2=B]
How can I modify it to show top 10 Dimennsion 1 based on % of B
May be this
If(Rank(Count({<[Sub Product] = {'B'}>} [Unique Id])/Count(TOTAL <[Product Category]> [Unique Id])) < 11, Count([Unique Id])/Count(TOTAL <[Product Category]> [Unique Id]))