Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would like to ask if it is possible to change the values in each column of a table depending on the input values selected.
I have here Profit and Loss for each project. I want to put the expected profit and Percentage complete using the What if parameter but I don't want it to be static. Each project have different completion rate and profit. I have sample as well in excel of what i mean.
@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]
)
Proud to be a Super User! |
|
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.
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]"
Proud to be a Super User! |
|
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.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |