cancel
Showing results for 
Search instead for 
Did you mean: 
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
1 REPLY 1
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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!