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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
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.