Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AlejandroPCar
Helper IV
Helper IV

Rank Issue with lot of filters

Hi!

 

I do not finish understandig RANKX beacuse Im using it but I cant make it rank the things well. In this scenario I have several filters and I need every filter I aplied the rank so... ranks the selected thing.  I know I got help before about RANKX but all their previous solutions didnt get success. 

Rank3.png

 

 

Here is my pbix file https://1drv.ms/u/s!AtTnrgPUQzQCnAUc2MYHfnad2lPl , sorry but is some huge. 

 

Thanks for your help. 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@AlejandroPCar

 

Hi, try with:

 

Measure =
IF (
    [Parte 1 Gobierno Corporativo Diferencia] <> BLANK (),
    RANKX (
        ALLSELECTED ( 'Tabla Cruce'[NIT] ),
        CALCULATE (
            [Parte 1 Gobierno Corporativo Diferencia],
            ALLEXCEPT ( 'Tabla Cruce'; 'Tabla Cruce'[NIT] ),
            ALLSELECTED ( 'Sectores CIIU Codigos'[Sector] )
        ),
        ,
        DESC,
        DENSE
    )
)

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@AlejandroPCar

 

Hi, try with:

 

Measure =
IF (
    [Parte 1 Gobierno Corporativo Diferencia] <> BLANK (),
    RANKX (
        ALLSELECTED ( 'Tabla Cruce'[NIT] ),
        CALCULATE (
            [Parte 1 Gobierno Corporativo Diferencia],
            ALLEXCEPT ( 'Tabla Cruce'; 'Tabla Cruce'[NIT] ),
            ALLSELECTED ( 'Sectores CIIU Codigos'[Sector] )
        ),
        ,
        DESC,
        DENSE
    )
)

Regards

 

Victor

Lima - Peru




Lima - Peru

Hi @Vvelarde

Thabks for your response but your formula does not work, the result is the same I posted. 

@AlejandroPCar,

 

It would be better to simplify your model and show us the expected result with dummy data.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.