Forum Discussion
Kmason_6
3 years agoNew 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 ...
BA_Pete
Super User
3 years agoHi 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:
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:
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