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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Alpesh
Helper I
Helper I

Using Parameter value in an If Statement on Column

Hi

 

I have a slicer with 1 - 1000. I want to use the value from this slicer (Parameter created number range created) in an If statement to check if a column on the table is above a certain value. However, it does not seem to work...

 

Here is the DAX:

_custom Is Case within SLA? =

VAR SLA = Parameter[Parameter Value]
rETURN
IF(ISBLANK('Chat Table Unique'[Accepted Time]), "No Accepted Time", IF([_1st Accepted Bus. Seconds] < SLA, "True", "False"))


However, if I "hard code" the variable with a number it works fine... how can I get it to be dynamic based on the slicer selection?
VAR SLA = 200
rETURN
IF(ISBLANK('Chat Table Unique'[Accepted Time]), "No Accepted Time", IF([_1st Accepted Bus. Seconds] < SLA, "True", "False"))
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Alpesh ,

 

Please try this measure:

 

_custom Is Case within SLA? =

VAR SLA = SELECTEDVALUE('Parameter'[Parameter])
RETURN
IF(ISBLANK('Chat Table Unique'[Accepted Time]), "No Accepted Time", IF([_1st Accepted Bus. Seconds] < SLA, "True", "False"))

vtangjiemsft_0-1710466753286.pngvtangjiemsft_1-1710466767115.png

 

 

 

Best Regards,

Neeko Tang

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
Anonymous
Not applicable

Hi @Alpesh ,

 

Please try this measure:

 

_custom Is Case within SLA? =

VAR SLA = SELECTEDVALUE('Parameter'[Parameter])
RETURN
IF(ISBLANK('Chat Table Unique'[Accepted Time]), "No Accepted Time", IF([_1st Accepted Bus. Seconds] < SLA, "True", "False"))

vtangjiemsft_0-1710466753286.pngvtangjiemsft_1-1710466767115.png

 

 

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors