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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.