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

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

Reply
SLJN
Regular Visitor

How do I use a filter slicer to show a value within a range of values

Hi, 

 

I basically have these two tables. I want to use a slicer to select costcenter (from) to costcenter (TO), the result I want to show in a table is name, costsenter (from) and costcenter (to). So if I search for costcenter 15- costcenter 19 in the slicer, I want charles and lisa to come up as a result in the table. Right now the table only displays the names and range if I put in the exact values in the slicer. 

 

I have done a calculated table to generate values in the full range ('Costcenter range'[value]). For the filter slicer I have done IF syntax.  If i select the value 15-19 I get no result in the table - how do I solve this? 

 

Filter Costcenter = IF(
    SELECTEDVALUE('Responsibilities'[Costcenter from])>=MIN('Costcenter range'[value])
    &&
    SELECTEDVALUE('Responsibilities'[Costcenter from])<=MAX('Costcenter range'[value]),
    1 ,
    BLANK()

 

SLJN_0-1664966228776.png

 

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

Hi , @SLJN 

 Here are the steps you can refer to :

(1)My test data is the same as yours .

(2)We can create a measure :

Filter Costcenter = var _min_slice = MIN( 'Costcenter range'[Costcenter range])
var _max_slice = MAX( 'Costcenter range'[Costcenter range] )
var _from =SELECTEDVALUE( 'Responsibilities'[Costcenter(FROM)])
var _to = SELECTEDVALUE('Responsibilities'[Costcenter(TO)])
return
IF(_from <= _min_slice  && _to  >= _max_slice ,1,0)

(3)Then we put the measure in the "Filter on this measure" and configure it then we can meet your need:

vyueyunzhmsft_0-1665022635640.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @SLJN 

 Here are the steps you can refer to :

(1)My test data is the same as yours .

(2)We can create a measure :

Filter Costcenter = var _min_slice = MIN( 'Costcenter range'[Costcenter range])
var _max_slice = MAX( 'Costcenter range'[Costcenter range] )
var _from =SELECTEDVALUE( 'Responsibilities'[Costcenter(FROM)])
var _to = SELECTEDVALUE('Responsibilities'[Costcenter(TO)])
return
IF(_from <= _min_slice  && _to  >= _max_slice ,1,0)

(3)Then we put the measure in the "Filter on this measure" and configure it then we can meet your need:

vyueyunzhmsft_0-1665022635640.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.