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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
BITomS
Solution Supplier
Solution Supplier

Date Data Type as 'What If' Parameter

Hi there all,

 

I was wondering if anyone had any experience with creating a Report Parameter (i.e. from the modelling tab within Report view, NOT a parameter within Power Query) with a date data type? And if so, how they went about doing this?

 

I've had a request from a business user where they'd like to be able to change a specific date to scenario model how this different start date can affect cost over a time period. The date would feed into a calculation based on market rates from this selected date.

 

Currently, parameters only seem to accept numeric values, so this may need to be an idea request, but thought i'd ask before creating this, especially if any of you bright souls had found a workaround.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BITomS ,

 

Using the what if parameter is also essentially switching the contents of the field via slicer. I made simple samples as you described and you can check the results below:

vtianyichmsft_0-1723615360538.png

vtianyichmsft_1-1723615370712.png

Total = SUM('Table'[Value]) 
% = var _select = MIN('Table 2'[Date])
var _period = CALCULATE(SUM('Table'[Value]),FILTER('Table',[Date]>=_select))
RETURN DIVIDE(_period,[Total])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @BITomS ,

 

Using the what if parameter is also essentially switching the contents of the field via slicer. I made simple samples as you described and you can check the results below:

vtianyichmsft_0-1723615360538.png

vtianyichmsft_1-1723615370712.png

Total = SUM('Table'[Value]) 
% = var _select = MIN('Table 2'[Date])
var _period = CALCULATE(SUM('Table'[Value]),FILTER('Table',[Date]>=_select))
RETURN DIVIDE(_period,[Total])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@BITomS , Usually we can achieve this using a disconnected Date table. Depending on what measure is needed

 

You can switch date filter of date, or use the filter on multiple dates.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.