Forum Discussion
ibuhary
7 years agoHelper I
Remove RANKX from Total Row and Hide from Non Related Filters
Hello everyone, I have the few Created Measures in my Database: - StoreRank = RANKX(ALL(Table[Store Code],Table[Store Name]),CALCULATE(SUM(Table[Sales Volume])),,DESC) - ProductRank = RA...
- 7 years ago
For your first question, you can use HASONEFILTER to detect totals/subtotals
Something like this
- StoreRank = IF ( HASONEFILTER ( Table[Store Code] ), RANKX ( ALL ( Table[Store Code], Table[Store Name] ), CALCULATE ( SUM ( Table[Sales Volume] ) ), , DESC ) )
ibuhary
7 years agoHelper I
Did I ask something not logical to do in Power BI ?
Zubair_Muhammad
7 years agoCommunity Champion
For your first question, you can use HASONEFILTER to detect totals/subtotals
Something like this
- StoreRank =
IF (
HASONEFILTER ( Table[Store Code] ),
RANKX (
ALL ( Table[Store Code], Table[Store Name] ),
CALCULATE ( SUM ( Table[Sales Volume] ) ),
,
DESC
)
)
- ibuhary7 years agoHelper I
can you help me on another issue please ?