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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
mr_felix
New Member

RANKX wrong results

Hello everyone,

for some reason my rankx function doesn't show the right result.

thank you!

rankx.PNG

1 ACCEPTED SOLUTION

I finally made it work by changing the variable type of my columns so i guess there was a conversion problem somewhere. Thank you for your answer and have a good day.

View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @mr_felix,

 

Without any further information on your data is difficult to see what is the issue try to change your measure to:

 

Test4 =
RANKX (
    ALL ( Transaction[Courtier]; Transaction[#Volume transigé] );
    CALCULATE ( SUM ( Transaction[#Volume transigé] ) );
    ;
    DESC
)

Sometimes the columns you add to your table visual impact in the measure context so the result may not be the correct one.

 

Again without any addtional information is difficult, can you share a sample of the data model or a sample file?

 

If information is sensitive share it trhough private message.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



I finally made it work by changing the variable type of my columns so i guess there was a conversion problem somewhere. Thank you for your answer and have a good day.

Hi @mr_felix,

 

That is strange because the function should work even with decimals. Maybe something in your model.

 

But glad it's solved.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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