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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
yforti
Helper II
Helper II

Duplicate rankx values

Hi guys!

 

I'm having trouble creating a simple RankX measure, as I see that the formula does not contain any type of error, however, the rankx is not working.

I'm trying to rank by establishment (first column), an establishment is a hospital name and is formatted as text.

 

measures used:

Valor Alerta = CALCULATE(SUMX('visao_etapa_conta - Não Remetidas','visao_etapa_conta - Não Remetidas'[VL_CONTA]))
Rank Valor = RANKx(ALL('visao_etapa_conta - Não Remetidas'[ESTABELECIMENTO]),[Valor Alerta],,DESC)
 
 

 

yforti_0-1617217211833.png

 

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

Do these measures work?

Valor Alerta = SUM('visao_etapa_conta - Não Remetidas'[VL_CONTA])
Rank Valor = RANKx(ALL('visao_etapa_conta - Não Remetidas'[ESTABELECIMENTO]),[Valor Alerta],,DESC)
If not, then share the download link of your PBI file.

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

I tried but could not resolve the problem.  Sorry.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi, @yforti 

Please try using ALLSELECT, instead of ALL.

Or, if it is OK with you, please share your sample pbix file, then I can try to come up with a more accurate solution.

Thank you.

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

How can i share my sample?

Hi,

you can save your file in Onedrive or Googledrive, and you can share the link here.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi, I think the file has been deleted.

Please check.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors