Forum Discussion

HelenBrunyee's avatar
HelenBrunyee
Icon for Helper I rankHelper I
5 years ago
Solved

RANKX Only Returning 1

Hello,

 

I was hoping you would be able to help me. I have tried various options from other forum posts, but have not got anywhere.

 

I have created a RANKX formula to rank the sites I have, by the number of tickets they have issued, but it always ranks all of the sites as 1 in my table.

 

I originally used this DAX fomula, with no sucess:

 

Site Rank = RANKX (
ALLSELECTED(V_Locations[Location Name]), CALCULATE([Total Issued])),, DESC, DENSE)
 [Total Issued] = DISTINCTCOUNT(R_Issued[Reference]) - R_Issued is the list of tickets issued.

 

I then tried the following, based on another post, which worked for them, but I still get them all as 1:

 

Site Rank = RANKX (
ALLSELECTED(V_Locations[Location Name]), CALCULATE(DISTINCTCOUNT(R_Issued[Reference])),, DESC, DENSE)

 

Could anyone tell me what I am doing wrong?

 

Any help would be much appreciated!

 

Best wishes,

Helen

2 Replies