Forum Discussion
Power BI Calculating Weekly Sum
- 6 years ago
Hi digitalau ,
To use VALUES function should work.
Measure = CALCULATE ( SUM ( 'Table'[values] ), FILTER ( ALL ( 'Table' ), 'Table'[date] <= MAX ( 'Table'[date] ) ), VALUES ( 'Table'[Wn] ), VALUES ( 'Table'[date].[Year] ) )
Robin,
Thank you for the reply. It is a measure already.
It looks like ALLEXCEPT is not working .
They're coming from different tables linked together with Date Column. ( 1 to Many from Date to ImpressionShare)
The reason I would not want to bring Impressions to Date table is that I am going to have "Date" connections with 12 tables and for several other columns.
I am trying to understand the logic of why it's not working .
There's a 1 to many link between Date and Impression table
I tried using the method you mentioned .
1. Created a column in ImpressionShare Table : _Week4Impressions , which gives me a week entry in ImpressionShare column
2. Created _SumWeeklyImpressions :
- ERIC_A3 years agoHelper II
hi in case you need it. this is what I did to get my total per week
weeklysum = calculate(count(Table1[calls]),ALLEXCEPT(Table1,Table1[Creation Week#]))