Forum Discussion

VoltesDev's avatar
VoltesDev
Helper V
2 years ago
Solved

Why RANKX doesn't working on decimal value ?

Hi, When I have these kind of data :     As per picture, I have now some rank which is duplicate (same rank). Altough my rank now "looking" at my column "news count decimal" which is basica...
  • Greg_Deckler's avatar
    Greg_Deckler
    2 years ago

    VoltesDev Well, you can always just say To **Bleep** with RANKX: To *Bleep* with RANKX! - Microsoft Fabric Community

    PBIX is attached below signature. 

    Rank Provider 4 = 
        VAR __Provider = MAX('table1'[Provider])
        VAR __Table = SUMMARIZE( ALLSELECTED('table1'), [provider], "__Value", COUNTROWS(DISTINCT('table1'[title])) + RAND() )
        VAR __Value = MAXX( FILTER( __Table, [provider] = __Provider), [__Value])
        VAR __Result = COUNTROWS( FILTER( __Table, [__Value] >= __Value) )
    RETURN
        __Result