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
rui_silva
Helper I
Helper I

RANKX showing duplicated values

Hi,

I getting a issue where when i try to use RANKX to rank some data im getting duplicated values 

Measure im using : rankx(allselected(Dados[Turmas/Ano]); calculate(SUMX(Dados;Dados[MódulosAtraso]));;;Skip)

Sample Data:

School     NameofClass  MódulosAtraso  Rank

Porto          Class1                   900               1

Viseu          Class10                 560               1

Porto          Class20                 820               2

Viseu          Class4                   400               2

 

Expected Result would be:

School    NameofClass       MóduloAtraso      Rank

Porto           Class1                    900                   1               

Porto           Class10                  820                   2

Viseu           Class20                  560                   3

Viseu           Class4                    400                   4

 

OBS : Each school has unique ID for example :

SchoolID School

1                Porto

2                Viseu

1 ACCEPTED SOLUTION

@tex628 Thanks for all the help i already found a way to show the information i wanted so instead of using my SchoolName i used the ClassID and now its showing the results i wanted .

As my ClassID they have schools names abbreviated as for examples PORGpsi1619 , i made table with the abreviattions and the school names so in the meetups people can understand what the 3 first letters means 

 

 

View solution in original post

11 REPLIES 11

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.