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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.