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

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

Reply
Anonymous
Not applicable

what-if parameters for product allocation

Hi

 

I Have two data set, product unit price and allocation, also the product demand. I would like to create a what if simulation that I allocation part A123 in supplier At o 80%, how the spend would change? and It will automatically change supplier B allocation to 20%. Is there any way I can do?

 

PeterWu_0-1601453243799.pngPeterWu_1-1601453259312.png

 

 

 

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Hope I didnt misundertand your point.

First create a what-if parameter and set the default value as 0.8;

Then create 2 measures as below:

Measure for A = CALCULATE(MAX('Table (2)'[Demand]),'Table (2)'[Parts]="A123")*'Parameter 1'[Parameter 1 Value]
Measure for B = CALCULATE(MAX('Table (2)'[Demand]),'Table (2)'[Parts]="A123")*(1-'Parameter 1'[Parameter 1 Value])

And you will see:

 

Screenshot 2020-10-02 135733.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Hope I didnt misundertand your point.

First create a what-if parameter and set the default value as 0.8;

Then create 2 measures as below:

Measure for A = CALCULATE(MAX('Table (2)'[Demand]),'Table (2)'[Parts]="A123")*'Parameter 1'[Parameter 1 Value]
Measure for B = CALCULATE(MAX('Table (2)'[Demand]),'Table (2)'[Parts]="A123")*(1-'Parameter 1'[Parameter 1 Value])

And you will see:

 

Screenshot 2020-10-02 135733.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.