Forum Discussion

yforti13's avatar
yforti13
Regular Visitor
1 year ago
Solved

HELP dax rankx

Hi guys!   I'm trying to sort the top 20 values ​​in my table, but I'm encountering the following scenario: My measure:     As you can see below, there are values ​​for past...
  • yforti13's avatar
    yforti13
    1 year ago

    i didn't understand 😕

    Like this?

    RankingTableCNE180d =

    VAR _x =
    RANKX(
        ALL(d_DemaisConvenios),
    CALCULATE(
    [m_CNE180],
    'd_Calendario'[Date] >= DATE(2025, 02, 01),
    'd_Calendario'[Date] <= DATE(2025, 02, 29)
    ))

    RETURN
    _x