Forum Discussion
Change the input variables based on different project in a table
kristel_tulio , You can create a measure using the value of the what if parameter
First create a whatif paramater
Go to the Modeling tab in Power BI Desktop.
Click on "New Parameter".
Name your parameter (e.g., "Completion Rate").
Set the Data Type to Decimal Number.
Set the Minimum, Maximum, and Increment values according to your needs (e.g., Min: 0, Max: 1, Increment: 0.01 for percentage).
Click OK. This will create a new table with the parameter values and a slicer for the parameter.
Then create a measure for
Expected Profit =
SUMX(
Projects,
Projects[Profit] * 'Completion Rate'[Completion Rate Value]
)
And
Percentage Complete =
SUMX(
Projects,
Projects[Completion] * 'Completion Rate'[Completion Rate Value]
)
Hi bhanu_gautam
Thank you for responding. I already created the what if parameter but what I want to achieve is each project will have different expected profit and percentage based on selection. I want to copy the data on my excel in power bi.
- bhanu_gautam2 years ago
Super User
Try using measure which I have mentioned they are created using dynamic value which will be selected on the what if paramter "Completion Rate'[Completion Rate Value]"
- kristel_tulio2 years ago
Helper III
Hi bhanu_gautam,
Thanks for the suggestion. I already have the parameters but what I want to show is the percentage and expected profit can be change differently to each project like the one I have in excel if that's possible.