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
TrueBluex2
Frequent Visitor

RANKX works with some measures, not with others

I am building a Power BI Report that ranks account managers on each of a number of metrics, including Monthly Recurring Revenue (MRR) supported, number of clients supported, number of clients lost, MRR lost, etc.  I can rank MRR supported by all clients, and also rank it by Account Manager (page one in the linked PBIX).  The linked PBIX is a small file with dummy data.


I am not able to get RANKX to work when I do it on the count of clients, which is a measure that includes countrows (page 2 of the linked PBIX below).  Can someone assist?

 

https://rsharepoint-my.sharepoint.com/:u:/g/personal/ed_comer_ricoh-usa_com/ESoqIEXzwHVFswn_zk_dg8EB... 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @TrueBluex2 ,

Chage the measure to the below:

Rank Client Count = CALCULATE (RANKX ( ALL ( Clients[Account Manager] ), CALCULATE ( COUNTROWS( Clients) )))

 

And I test ,successful:

v-luwang-msft_0-1623305475161.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @TrueBluex2 ,

Chage the measure to the below:

Rank Client Count = CALCULATE (RANKX ( ALL ( Clients[Account Manager] ), CALCULATE ( COUNTROWS( Clients) )))

 

And I test ,successful:

v-luwang-msft_0-1623305475161.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

That worked!  Thank you!

Please mark your post as solved.

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.