Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Showing next value in table when filtered on a specific id

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:

RankIDSum
11354867200
26564180
38523160
4753140
5951120
6159100
735780
865460
925840

 

 

 

Filtered row:

 

RankIDSum
6159100

 

Above 2:

 

RankIDSum
4753140
5951120

 

Below 2:

RankIDSum
735780
865460

 

Any thoughts or suggestions would be hugely helpful!

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1605511704194.png

 

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.

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1605511704194.png

 

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.

Anonymous
Not applicable

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 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors