Forum Discussion

AlejandroPCar's avatar
AlejandroPCar
Helper IV
8 years ago
Solved

RANKX Issue!

Hi!   I have an strange rankx issue. I used to use RANKX measure currently in other work Im doing, but now in this file all RANK im trying to do does not have the expected result. It is very strang...
  • Zubair_Muhammad's avatar
    8 years ago

    Hi AlejandroPCar

     

    Try this MEASURE as a test

    I just replaced ALL( 'TABLA CRUCE'[NIT]).......   with...........  ALL( 'TABLA CRUCE'[NIT],'TABLA CRUCE'[NOMBRE])

     

     

    Rank Dimension Interna =
    VAR RankDimension =
        RANKX (
            ALL ( 'TABLA CRUCE'[NIT], 'TABLA CRUCE'[NOMBRE] ),
            [Dimensión Interna],
            ,
            0,
            DENSE
        )
    RETURN
        IF ( [Dimensión Interna] = 0, BLANK (), RankDimension )