Forum Discussion
Anonymous
4 years agoNot applicable
Dynamic RANKX with multiple filters and slicer
Hi, Power BI newbie here. I am trying to dynamically rank my dataset for each Sale Transaction based on the Item Price. However i also have a slicer filter for Item Warehouse location which...
- 4 years ago
Hi Anonymous
Yes it is working but this is a calculated column which cannot interact with the filter context.
Try this measure on the full set of dataRanking Measure = RANKX ( ALLSELECTED ( Sales ), CALCULATE ( SUM ( Sales[Item_Price] ) ), , ASC, DENSE )
tamerj1
4 years agoCommunity Champion
Hi Anonymous
Yes it is working but this is a calculated column which cannot interact with the filter context.
Try this measure on the full set of data
Ranking Measure =
RANKX (
ALLSELECTED ( Sales ),
CALCULATE ( SUM ( Sales[Item_Price] ) ),
,
ASC,
DENSE
)leojhernandez
1 year agoHelper I
I'm trying to achieve this same concept with slicer, but instead of using a calculation, in this example is doing a sum of sales, I need to use the earliest date. How do I achieve this?