Besides filtering the week number to that of today, you also need to remove filters (with ALL or REMOVEFILTERS) from any day-grain columns that could be filtered by report users.
PBI DAX Weekly Total Shown By Day
I am trying to create a measure that can show weekly aggregate data when sliced/filtered at the day level. More specifically show the same weekly value for each day of the week that is selected. The closest I have gotten is showing that value at the week level but it still slices if you drill to the day level.
Weekly Budget = CALCULATE([Budget],'Fiscal Calendar'[Week Num] = WEEKNUM(TODAY()))
Seems like a minor oversight but everything I try fails at the day.
Thank you for any assistance you can provide.
4 answers
Sort by: Most helpful
-
-
Charlie Day 1 Reputation point
2021-09-18T20:35:15.453+00:00 Thank you for the response I appreciate the help. Could you provide rough psuedo-code assuming it is a Y-Q-M-W-D calendar table?
-
Charlie Day 1 Reputation point
2021-09-19T22:23:04.707+00:00 Thank you that got me started. I appreciate the help.
-
Charlie Day 1 Reputation point
2021-09-27T22:13:35.347+00:00 This did exactly what I asked it to do, but not what I needed it to do. I am pulling this calculation into Power BI and it works fine on a Card visual. Any other visual does not seem to recognize the ALL() statement as it filters down for whatever time period is selected. Is there something special that needs to be done for Power BI visuals to understand how to work with the ALL() filters?