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
Anonymous
Not applicable

RANKX FUNCTION ISSUE

Hi, how are u? I am new in the community. I was creating a RANKX function i was having trouble wih it.

I have the table below:

Cliente is an unique identifier for a customer and "CuitsConsultadosUnicos" is the number of times that customer enter to a website.

TomasB_0-1692198982339.png

I want to create a rank of the customer that enter to the website. Im expecting the next result

RANK    CLIENTE           SUM(CuitsConsultadosUnicos)

1                 *                  44

2             30709584193  2

 

But instead of that i get 

RANK    CLIENTE           SUM(CuitsConsultadosUnicos)

1                 *                  44

5            30709584193   2

 

Here are the measure that ive used to create the rank:

 

Q_CUITS_CONSULTADOS_U =
SUM(Piloto[CuitsConsultadosUnicos]),

 

RANKING_CLIENTE =
RANKX(
ALL(Piloto),
[Q_CUITS_CONSULTADOS_U]
)

 

Thank you so much!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , try like

 

RANKING_CLIENTE =
RANKX(
ALL(Piloto[CLIENTE]),
[Q_CUITS_CONSULTADOS_U]
)

 

or

 

RANKING_CLIENTE =
RANKX(
allselecetd(Piloto[CLIENTE]),
[Q_CUITS_CONSULTADOS_U]
)

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , try like

 

RANKING_CLIENTE =
RANKX(
ALL(Piloto[CLIENTE]),
[Q_CUITS_CONSULTADOS_U]
)

 

or

 

RANKING_CLIENTE =
RANKX(
allselecetd(Piloto[CLIENTE]),
[Q_CUITS_CONSULTADOS_U]
)

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.