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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nuriac
Helper III
Helper III

RANKX

Hola, 

 

estoy haciendo un RANKX y me aparecen número repetidos. Esta es la fomula que estoy usando. He usado la misma para otro RANK pero con otra medida y me sale perfecto.

 

rank PED = if(HASONEVALUE('PEDIDOS DE VENTA'[Pedido]),RANKX(ALL('PEDIDOS DE VENTA'[Pedido]),[Fact Prev.Acum],,DESC),0)
3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @nuriac 

 

It’s my pleasure to answer for you.

According to your description,There is no problem with your current formula.How did you add column and modify the formula?Can you make it clear, or provide some sample data?So we can help you.

 

Best Regards

Janey Guo

 

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

@nuriac , You have user rand() function to break ties

Refer
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
nuriac
Helper III
Helper III

the problem occurs when I add more columns to the table. how can I keep it in mind?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.