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)
- Rymatt83010 years agoAdvocate II
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.
- 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!