Forum Discussion
Anonymous
7 years agoNot applicable
Set TODAY as default date in slicer visual (date range)
Hello, I want my date range (slicer) to dynamically set the date range from the first date value in the dataset to the current date (i.e. today's date). We have some target values for future date...
- 7 years ago
Hi Anonymous,
Currently, it is not supported to set default values for slicer. Here is an idea, you could click to vote it up.
Best regards,
Yuliana Gu
prateekraina
7 years agoMemorable Member
Hi Anonymous, v-yulgu-msft
In case if you are embedding the report, It is possible to set default values for slicer through Power BI Javascript API.
Here is the link:
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Slicers
Also, you can see working demos of these APIs through Power BI Embedded Playground.
https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html
Regards,
Prateek Raina
Anonymous
7 years agoNot applicable
Hi Prateek,
Unfortunately I am not. But thank you for those links!