Forum Discussion
BITomS
Solution Supplier
2 years agoDate 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 t...
- Anonymous2 years ago
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:
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 ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
2 years agoBITomS , 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.