Forum Discussion
RANKX Help
- 10 years ago
Ranking =
RANKX (
FILTER (
ALL ( tblFinancialAudit );
tblFinancialAudit[year] = EARLIER ( tblFinancialAudit[Year] )
&& tblFinancialAudit[PeerGroup] = EARLIER ( tblFinancialAudit[PeerGroup] )
);
tblFinancialAudit[CurrentAssets];
;
ASC;
DENSE
)
In table tblFinancialAudit: Create a calculated column:
Rank = RANKX(FILTER(ALL(tblFinancialAudit);tblFinancialAudit[year]=EARLIER(tblFinancialAudit[Year]));tblFinancialAudit[CurrentAssets];;ASC;Dense)
Thank you, Vvelarde. I implemented your suggestion (except I replaced ";" with ",") but it's not recognizing the PeerGroupAC field. There are only 21 organizations in that Peer Group, but the ranks appear to be based on all of the organizations, not just the one's in the selected group (see image)
- Sean10 years agoCommunity Champion
Rymatt830 Check which [ID] column you are using to build your Table Visualization?
If your Ranking Measure look like this...
you should use tblOrganization[ID] to build your Table NOT tblFinancialAudit[ID]
Rank = RANKX ( ALL ( tblOrganization[ID] ), CALCULATE ( SUM ( tblFinancialAudit[CurrentAssets] ) ) )I hope this resolves it! :smileyhappy:
- Rymatt83010 years agoAdvocate II
Thanks for the reply. I tried that solution initially and it does not work.
- Anonymous9 years agoNot applicable
Hello Vvelarde,
I'm using the same formula for my Rank measure and I don't know why but it doesn't seem to work properly..
The rank starts from 2.. look
(I don't know why I can not send the screenshot as a picutre in the post...)
Thanks
- Vvelarde10 years agoCommunity Champion
Ranking =
RANKX (
FILTER (
ALL ( tblFinancialAudit );
tblFinancialAudit[year] = EARLIER ( tblFinancialAudit[Year] )
&& tblFinancialAudit[PeerGroup] = EARLIER ( tblFinancialAudit[PeerGroup] )
);
tblFinancialAudit[CurrentAssets];
;
ASC;
DENSE
)- Rymatt83010 years agoAdvocate II
Thank you again, Vvelarde! Your solution works great!