To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I would like to be able to show the above x and below x number of IDs based on a filtered value. Basically to show the nearest neighbour. The sum value comes from another table and the rank is dynamic based on the date filter. Something like this would be great:
Initial table:
Rank | ID | Sum |
1 | 1354867 | 200 |
2 | 6564 | 180 |
3 | 8523 | 160 |
4 | 753 | 140 |
5 | 951 | 120 |
6 | 159 | 100 |
7 | 357 | 80 |
8 | 654 | 60 |
9 | 258 | 40 |
Filtered row:
Rank | ID | Sum |
6 | 159 | 100 |
Above 2:
Rank | ID | Sum |
4 | 753 | 140 |
5 | 951 | 120 |
Below 2:
Rank | ID | Sum |
7 | 357 | 80 |
8 | 654 | 60 |
Any thoughts or suggestions would be hugely helpful!
Solved! Go to Solution.
Hi @Anonymous ,
Please refer to my .pbix file.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @veenashenolikar ! If you could help me with the DAX that would be much appreciated!
Hi @Anonymous
You can use the Rank column to identify row selected and return 2 previous or next.
Let me know if you need help ito build the DAX