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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Moeaqrl
New Member

What-if parameters

At the retail company i work, the sales men are giving the customers discounts. At the end of  the year, the sum of sales after discount =100M and the total dicounts amount=45M. 

i want to make a what if parameter to the discounts in which i make it dynamic to show that :

 

if we decreased  the discount amount by 10% the sales would have increased by so and so ..

 

how can I achieve that ? 

2 REPLIES 2
pi_eye
Resolver IV
Resolver IV

Hi Moeaqrl,

 

This is fairly easy to achieve in PowerBI desktop.

Go to Modelling -> What if -> New parameter

 

Change to below values, for a % change

 

pi_eye_0-1669655542864.png

pi_eye_1-1669655596504.png

 

 

This then creates a discount field which can be used in a slider for the data entry, and referenced in measures:

 

pi_eye_3-1669655965428.png

Measures:

New discount % = PercentDiscount[PercentDiscount Value]
Sum of Sales without Discount = sum('what if'[Sales]) + sum('what if'[Discount])
New Discount, $ = [Sum of Sales without Discount] * PercentDiscount[PercentDiscount Value]
New Sales Amt = [Sum of Sales without Discount]-[New Discount, $]
Difference = [New Sales Amt]-sum('what if'[Sales])
 
Resulting table - is dynamic when the value in the slider is changed

 

pi_eye_4-1669656256212.png

 

 

HTH

 

Pi

Hey Pi_eye

Thank you for your help, 

i did what you have clearified, but it did not work.

my goal is to creat a what if senario that explanies the following :

if we could have decreased the discounts by xyz%, the sales would have been so and so .

do you know how i can achieve that ? 🙂 

cheers

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.