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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors