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

Join 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.

Reply
Anonymous
Not applicable

Using What if parameter + column data in a measure

Hello everyone !

Thank you for all the knowledge you are sharing out there.

 

I need to develop sort of a Dashboard for my work.
The user need to choose a parameter to increase a price ( % value between 10% / + 50%, what if parameters) and that value shall be multiplicated by a value in my table (to reflect new price).
I am aware i can not use it in column since its static though while doing a measure it seems it returns blank value.

Example What if :
Parameter from -10% to 50%
User Slicer choosen = 5% 

Other table ( not related) : 

Random PriceParameter choosenNew price
100 USD5%105 USD
120 USD5%126 USD



Is there any way to achieve that NEW PRICE column dynamically? 

1 ACCEPTED SOLUTION
lkalawski
Super User
Super User

Hi @Anonymous ,

 

If I understand correctly, you want to create a simulator to analyze new prices using slicer.
In this case, if you have a slicer with a selection of values, all you need to do is write a measure that calculates the result based on the selection from the slicer.

The SUMX function will allow you to calculate the increase/decrease per dimension. In this case, the dimension is Price, but if it is employee/product, just change it in the code (check the SUMX function).

New Price = 
SUMX(
    VALUES('Price'[Price]),
    'Price'[Price] + 'Price'[Price] * SELECTEDVALUE('Percent Increase'[Percent Increase])/100)

Result:

lkalawski_0-1720620521832.png

 

If I helped, accept the post as a solution and give a kudos. 👍 Thanks!😁

View solution in original post

1 REPLY 1
lkalawski
Super User
Super User

Hi @Anonymous ,

 

If I understand correctly, you want to create a simulator to analyze new prices using slicer.
In this case, if you have a slicer with a selection of values, all you need to do is write a measure that calculates the result based on the selection from the slicer.

The SUMX function will allow you to calculate the increase/decrease per dimension. In this case, the dimension is Price, but if it is employee/product, just change it in the code (check the SUMX function).

New Price = 
SUMX(
    VALUES('Price'[Price]),
    'Price'[Price] + 'Price'[Price] * SELECTEDVALUE('Percent Increase'[Percent Increase])/100)

Result:

lkalawski_0-1720620521832.png

 

If I helped, accept the post as a solution and give a kudos. 👍 Thanks!😁

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.