Forum Discussion
TOP N Issue - Please help!
Hi -
I have a dataset where there are duplicate IDs because a client might be generating revenue in more than one Line of Business. The structure of the data can't change.
I'm using the following formula to get the Top N using a Top N slicer:
- Anonymous2 years ago
Hi dave_f ,
Please try this:
Client LOB Rank = RANKX(ALLSELECTED('LOB Top N'[Client Name with GCID]),'LOB Top N'[Total Sum])If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi dave_f ,
Please try this:
Client LOB Rank = RANKX(ALLSELECTED('LOB Top N'[Client Name with GCID]),'LOB Top N'[Total Sum])If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.