Forum Discussion
ibuhary
Helper I
7 years agoRemove 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
Helper I
7 years agoDid I ask something not logical to do in Power BI ?
- Zubair_Muhammad7 years ago
Community 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 ago
Helper I
can you help me on another issue please ?