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
deechappi
Frequent Visitor

Filter the column(s) values based on the slicer

I have a dataset with 4 columns like the one below:


Column1 Index Category ID
4908 1 A  123
4912 2 B 456
4915 3 C 789
4918 4 D 134
4922 5 E 178
4925 6 B 398
4928 7 F 549
4932 8 A 753
4935 9 D 497
4938 10 C 374

There is a slicer for Column1. If a value is selected in the slicer, then the values from one before the selected up to the end should be retrieved.

For example, if I select 4928, then I should get the values
4925 B 398
4928 F 549
4932 A 753
4935 D 497
4938 C 374

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @deechappi ,

 

Please create an unreleated DimColumn1 table for slicer. Then create a measure to have a test.

Filter = 
VAR _SELECTVALUE =
    SELECTEDVALUE ( 'Filter'[Column1] )
VAR _VALUEBEFORE =
    CALCULATE (
        MAX ( 'Table'[Column1] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Column1] < _SELECTVALUE )
    )
RETURN
    IF ( MAX ( 'Table'[Column1] ) >= _VALUEBEFORE, 1, 0 )

Add this filter into table visual and set it to show items when value = 1.

Result is as below.

vrzhoumsft_0-1698648933968.png

 

Best Regards,
Rico Zhou

 

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

6 REPLIES 6
Anonymous
Not applicable

Hi @deechappi ,

 

Please create an unreleated DimColumn1 table for slicer. Then create a measure to have a test.

Filter = 
VAR _SELECTVALUE =
    SELECTEDVALUE ( 'Filter'[Column1] )
VAR _VALUEBEFORE =
    CALCULATE (
        MAX ( 'Table'[Column1] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Column1] < _SELECTVALUE )
    )
RETURN
    IF ( MAX ( 'Table'[Column1] ) >= _VALUEBEFORE, 1, 0 )

Add this filter into table visual and set it to show items when value = 1.

Result is as below.

vrzhoumsft_0-1698648933968.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

ray_aramburo
Super User
Super User

Something that I can think of is to change the Column1 type to numerical and use it as an slicer and set it up as a "greater than or equal to" type of slicer. 

ray_aramburo_0-1698336786667.png

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Thank You @ray_aramburo . But, I would also like the one before the selected value as well

You can adjust then to a "Between" type of slicer.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





The requirement is to use the "vertical list" slicer

You'd probably need to leverage some complex DAX, for simplicity I would push back and propose the between slicer. On the meantime, I'll see if I can think of a solution with DAX that fits your need.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





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