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

View solution in original post

That worked!  Thank you!

Please mark your post as solved.

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

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

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors