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
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

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.

Top Solution Authors