Forum Discussion
How to dynamically set the Parameter Current Value?
- 9 years ago
As it looks, we cannot use dynamic values in parameters right now: https://community.powerbi.com/t5/Desktop/Options-to-have-report-parameters-similar-to-what-we-have-in/td-p/27746
So the option I see for you would be to add a column to your calendar-table where only for the current day, a fixed expression/value like "Today" will be returned. You could then "hardcode" that in your parameter.
Appreciate assistance with the syntax.
I have my date table and added the current day column as a new column
isToday = IF('Date'[Date] = TODAY(), "TODAY", "")How should I use it in the parameter management form?
Cheers!
- ImkeF7 years agoCommunity Champion
This is a DAX formula that cannot reference parameters.
What exactly are you trying to accomplish?
- Anonymous7 years agoNot applicable
- Mmahachi7 years agoAdvocate I
did you get the solution for this - i'm trying to do the exact same thing. I put in the power query formulas for bringing back today's date but it's not extracting the date as the parameter, the parameter just shows the formula.
date.from(datetime.localnow())