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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
A_Murray
New Member

Variable (from a slider) in a new column calculation

Looking for help with building a % slider that changes column calculations. So for example a column that shows a variance where

if( [Col X] > ([Col Y] * variable), 1, 0).

 

"Variable" in this instance is a % from a slider from 100% to 150% in 1% increments.

Does the slider need to be created as a parameter and if so can that parameter be introduced as a part of the calc in a new column?

1 ACCEPTED SOLUTION

Here is an example of what you are trying to achieve. I believe.

HughLa_1-1676543617189.png

You have to use the Value Measure that is created because that returns the selected value form the slider.

 

Hope I make sense.

 

View solution in original post

6 REPLIES 6
A_Murray
New Member

I have created, I think, just like that but it seems to just pick up the default ,1 as 100%. If I change the formula to ,1.2 it will pick up 120% and not the value from the slicer. 

I did try that but getting error (my parameter is "Buffer" where you've called yours "Per")

A_Murray_0-1676550166029.png

 

 

Sorry got that wrong. All corrected now. Thank you

 

Glad you came right!

Here is an example of what you are trying to achieve. I believe.

HughLa_1-1676543617189.png

You have to use the Value Measure that is created because that returns the selected value form the slider.

 

Hope I make sense.

 

HughLa
Resolver IV
Resolver IV

Hi @A_Murray 

 

Yes, you will have to create a numeric range parameter:

HughLa_0-1676540947738.png

A slider like this is then created:

HughLa_0-1676541453495.png

 

This table is also created with these two fiels(one column and one measure):

HughLa_1-1676541031574.png

Then in your formula you'd use the measure which returns the selected value.

 

Per Value = SELECTEDVALUE('Per'[Per], 1)

 

 

Hope this helps you.

Hugh

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.