Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, complete noobie here.
I have created a slider/visual using a 'numeric range paramater', where i can select/enter from the range provide (e.g. 1-100)
Im trying to create a new column for my table that uses an IF (less than, greater than) statement between the paramater value and another column in the table. Example:
Solved! Go to Solution.
Hi @mheagerty
The HotChilli advice is sound.
If you want 'Table'[Column] to output values based on the slicer's selection, you should use Measure, not Column.
And your slicer is a range, which is why your dax doesn't work.
You can extract values from the slicer, such as minimum values:
Create a measure.
Test =
var _parameter = MIN('Parameter'[Parameter Value])
var _column = SELECTEDVALUE('Table'[Column])
RETURN
IF(_parameter < _column, "True", "False")
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous @HotChilli Thank you so much for providing this inofrmation, and in such detail.
This has worked perfectly, and I have also added a second parameter/variable for my measure 🙂
Hi @mheagerty
The HotChilli advice is sound.
If you want 'Table'[Column] to output values based on the slicer's selection, you should use Measure, not Column.
And your slicer is a range, which is why your dax doesn't work.
You can extract values from the slicer, such as minimum values:
Create a measure.
Test =
var _parameter = MIN('Parameter'[Parameter Value])
var _column = SELECTEDVALUE('Table'[Column])
RETURN
IF(_parameter < _column, "True", "False")
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can write a measure for this but you can't use a calculated column. They don't change in response to slicers.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
17 | |
7 | |
7 | |
6 | |
5 |
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |