Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
@v-nuoc-msft @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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |