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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.