cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
krzysztof
Helper III
Helper III

Top 1 in rankx does not appear

rankx function does rank by class and number of days but you can not see the first position

Ranking = 
   RANKX ( 
     ALLEXCEPT('Table';'Table'[car_class];'Table'[days]);
    CALCULATE ( SUM ( 'Table'[ttl_cost] ) ) ;;ASC;Dense)



1.PNG

 

Sample pbx

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@krzysztof 

 

Try thie MEASURE

 

Ranking2 =
RANKX (
    CALCULATETABLE (
        rent_201904230843,
        ALLEXCEPT (
            rent_201904230843,
            rent_201904230843[car_class],
            rent_201904230843[days]
        )
    ),
    CALCULATE ( SUM ( rent_201904230843[ttl_cost] ) ),
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@krzysztof 

 

Try thie MEASURE

 

Ranking2 =
RANKX (
    CALCULATETABLE (
        rent_201904230843,
        ALLEXCEPT (
            rent_201904230843,
            rent_201904230843[car_class],
            rent_201904230843[days]
        )
    ),
    CALCULATE ( SUM ( rent_201904230843[ttl_cost] ) ),
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.