Forum Discussion
Anonymous
6 years agoNot applicable
Today()-7 datra in calculated column
Hi All,
Can we convert this measure into Calculated column?
Measure 3 = CALCULATE(MAX(Table1[Values]),FILTER(ALL(Table1),[Date]=MAX(Table1[Date])-7))
https://community.powerbi.com/t5/Desktop/Today-1-data-for-each-record/m-p/837285#M402108
Thanks in Advance.
Hi Anonymous ,
Column = VAR d = [Date] - 7 RETURN CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', [Date] = d ) )
2 Replies
- AnonymousNot applicable
Yes, just create index columns starting with 0 and 1 then merge teh table with itself
- v-frfei-msft
Community Support
Hi Anonymous ,
Column = VAR d = [Date] - 7 RETURN CALCULATE ( SUM ( 'Table'[value] ), FILTER ( 'Table', [Date] = d ) )