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
LuanRamos
Frequent Visitor

Rankx duplicado

Olá, pessoal!

 

Vocês sabem como posso eliminar valores de rank duplicados, conforme no exemplo abaixo?

 

LuanRamos_0-1614597476192.png

 

No ranking, dois clientes estão ocupando a posição 14, porém, o cálculo que realizei considera o valor do faturamento, o que é diferente para cada um desses clientes. O DAX utilizado foi o seguinte:

 

Ranking =
RANKX(
ALLSELECTED(D_Cliente)
,[Valor - Vendas Total]
)
 
O campo [Valor - Vendas Total] é o "Faturamento"
 
Muito obrigado
2 REPLIES 2
marcelos
New Member

Oi Luan, tudo bom?
Você conseguiu resolver? Eu estou tendo o mesmo problema.

Valores diferentes com o mesmo ranking
marcelos_0-1648445594349.png

 

amitchandak
Super User
Super User

@LuanRamos , Try like this and check

 

Ranking =
RANKX(
ALLSELECTED(D_Cliente[Cliente]) //use the column name
,[Valor - Vendas Total]
)

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://www.youtube.com/watch?v=DZb_6j6WuZ0

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

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.