cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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

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

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

HTH

Pi

New Member

Hey Pi_eye

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

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors