Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |