Forum Discussion
Wael03
3 years agoHelper I
Generating Row Number in Power BI Visualization
Hello ! I have a table displaying the top 20 company by total transaction amount as you can see : This table can change with filter such as the date or the country. I would like to add a co...
Wael03
3 years agoHelper I
Ok so I've managed to make it work using this DAX command :
Ranking =
RANKX ( ALLSELECTED ( table[company] ), CALCULATE ( SUM ( table[Tran Amount] ) ) )But as you can see the "Total" disappear for the "1" how can I use the DAX command only for the 20 first rows and not the total row ?
johnt75
3 years agoSuper User
Ranking =
IF (
ISINSCOPE ( table[company] ),
RANKX (
ALLSELECTED ( table[company] ),
CALCULATE ( SUM ( table[Tran Amount] ) )
)
)