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
Anonymous
Not applicable

Rankx funktion provides only "1"

HI! Please help. Funktion RANX does not work properly. 

Funktion provides only value "1".

 

Capture.PNG

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Please try to update the formula of your measure [RANG] as below and check whether you can get the correct rank values. The part with red font is updated one...

RANG = RANKX(ALLSELECTED('Fakten1'),[Umsatz])

yingyinr_0-1646630568801.png

If the above one can't help you get the correct result, please share the calculation logic of rank, the formula of the measure [Umsatz] and some sample data in Fakten1 and DIM_Kuden tables. Please also provide the related relationship info if it exist any one between these two tables. Thank you.

Best Regards

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

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

Please try to update the formula of your measure [RANG] as below and check whether you can get the correct rank values. The part with red font is updated one...

RANG = RANKX(ALLSELECTED('Fakten1'),[Umsatz])

yingyinr_0-1646630568801.png

If the above one can't help you get the correct result, please share the calculation logic of rank, the formula of the measure [Umsatz] and some sample data in Fakten1 and DIM_Kuden tables. Please also provide the related relationship info if it exist any one between these two tables. Thank you.

Best Regards

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

@Anonymous , if you created a rank on the table and there is a column from another table in the visual, it might not be right.


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

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.