Forum Discussion
Week comparison
- Anonymous4 years ago
Hi~ Anonymous
Please create a new column.
Column = IF ( 'Table'[Value] < CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Week] = EARLIER ( 'Table'[Week] ) - 1, ALLEXCEPT ( 'Table', 'Table'[Module], 'Table'[Output] ) ), 'Table'[Value] )The result should be like this.
I hope I understand correctly, if not then please let me know.
Best Regards,
Community Support Team _ Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Anonymous , Create a separate week or week year table.
Create a column like this in week or year week column
Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format
measures like these will help. with separate week table, it should work project wise
This Week = CALCULATE(sum('Table'[value]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[value]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))