Forum Discussion
Syndicate_Admin
1 year agoAdministrator
Set Filter to Default
Good day everyone. I have a dashboard in PowerBi that contains a filter with all the weeks of the year and I need this filter to always have the current week filtered when the report starts. As an...
- 1 year ago
Or try this
Current Week =var Currweek= WEEKNUM(TODAY(),1)Var Curryear= YEAR(TODAY())var Final= IF('Calendar'[WeekNo.]= Currweek && 'Calendar'[Year]= Curryear," Latest Week", "Week " &CONVERT('Calendar'[WeekNo.], STRING))RETURN FinalI hope this would get what you are looking for.
Uzi2019
1 year agoCommunity Champion
Check this blog
I hope I answered your question!
- Uzi20191 year agoCommunity Champion
Or try this
Current Week =var Currweek= WEEKNUM(TODAY(),1)Var Curryear= YEAR(TODAY())var Final= IF('Calendar'[WeekNo.]= Currweek && 'Calendar'[Year]= Curryear," Latest Week", "Week " &CONVERT('Calendar'[WeekNo.], STRING))RETURN FinalI hope this would get what you are looking for.- Uzi20191 year agoCommunity Champion
check this video
https://www.youtube.com/watch?v=FPQ6DohK6Pw&t=149s
just change Month to week level indax.