Forum Discussion
Pre l Post Event Filtering and Calculations based on user selected criteria
- 5 years ago
Hi Anonymous ,
Do you want to display the data of 202102 and 202104 when you select 202103?
If so, you need to create a new table, and then use the following measure.
Measure = CALCULATE( SUM('Table'[Sales]), FILTER( 'Table', 'Table'[Week] in { MAX('WeekNum'[Week]) - 1, MAX('WeekNum'[Week]) + 1 } ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Do you want to display the data of 202102 and 202104 when you select 202103?
If so, you need to create a new table, and then use the following measure.
Measure =
CALCULATE(
SUM('Table'[Sales]),
FILTER(
'Table',
'Table'[Week] in { MAX('WeekNum'[Week]) - 1, MAX('WeekNum'[Week]) + 1 }
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.