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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
benP
Frequent Visitor

Dynamic Price Slider

Hi all, 

 

I'm working on an energy report which shows consumption in kWh. I currently have this translated into £ using a hardcoded measure 

 

Cost = 0.148 * 'Energy Data'[Sum of Consumption]
 
This gives me a monetry value of 14.8 pence per kilowatt hour. I need to make this price dynamically adjustable via a slider ranging from 0 - 0.50p so the cost will update based on the slider input. Does anyone have any experience with something similar to this? 
 
Any advice would be greatly appreciated. 
Thanks, 
Ben 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @benP ,

 

Hope you have a  SlicerTable with different prices as values which is used as a slicer.

 

Let us assume the column name is Rate

 

Try the formula

 

Check = CALCULATE('Energy Data'[Sum of Consumption] * SELECTEDVALUE(SlicerTable[Rate]))
 
We take the value of SlicerTable[Rate] that is selected and use that to multiply 'Energy Data'[Sum of Consumption].
 
Cheers
 
CheenuSing

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @benP ,

 

Hope you have a  SlicerTable with different prices as values which is used as a slicer.

 

Let us assume the column name is Rate

 

Try the formula

 

Check = CALCULATE('Energy Data'[Sum of Consumption] * SELECTEDVALUE(SlicerTable[Rate]))
 
We take the value of SlicerTable[Rate] that is selected and use that to multiply 'Energy Data'[Sum of Consumption].
 
Cheers
 
CheenuSing

This worked perfectly. 

 

Thank you sir

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.