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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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