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
Kmason_6
New Member

Toggle varying scenarios from within the source file (Excel)

I am working on a dashboard to summarize a financial model for my company. I would like to structure the PowerBI dashboard to toggle key metrics within the source file and show the impacts instantly in the dashboard. 

 

As an example - to toggle the construction start date within the model to see how it impacts NPV and Net Income over time. 

 

I am hoping to avoid having to open a cumbersome financial model, alter the variable, save, open the PowerBI file, and refresh the data to see how the dashboard changes. I am hoping to be able to toggle some key variables and see the impact to the financials quickly while showing the dashboard to key stakeholders. 

 

Any advice would be greatly appreciated.

1 REPLY 1
BA_Pete
Super User
Super User

Hi @Kmason_6 ,

 

If your source data is granular enough i.e. it contains the base value that you want to apply scenarios to, then you can use DAX Parameters:

BA_Pete_0-1694175922685.png

 

Use this to create a list of values that can be selected to adjust the scenario. It will also automatically create a parameter measure that you can use to visualise the change.

 

For example:

BA_Pete_1-1694176324244.png

 

The PBIX attached below contains the above example so you can see how this fits together.

 

In order to do this for different dates the principle is the same but you'll need to create our own date list (usually just a calendar table), and you'll need to write a slightly more complex measure or set of measures, maybe something like this:

_noofDaysSelected =
VAR __selectedDate = MAX(calendar[date])
RETURN
DATEDIFF(__selectedDate, TODAY(), DAY)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.