Forum Discussion
How to show data from 2 weeks before and after a specified date
- 5 years ago
Hi, Anonymous
You can create two Measures and then use them to create Tornado visual.
Measure 1:
Previous 2 Weeks = CALCULATE(SUM('Table'[sales]),DATESINPERIOD('Table'[date],SELECTEDVALUE('Table'[date]),-14,DAY))
Measure 2:
Next 2 Weeks = CALCULATE(SUM('Table'[sales]),DATESINPERIOD('Table'[date],SELECTEDVALUE('Table'[date]),14,DAY))
The result looks like this:
Here is the pbix.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
You can create two Measures and then use them to create Tornado visual.
Measure 1:
Previous 2 Weeks = CALCULATE(SUM('Table'[sales]),DATESINPERIOD('Table'[date],SELECTEDVALUE('Table'[date]),-14,DAY))
Measure 2:
Next 2 Weeks = CALCULATE(SUM('Table'[sales]),DATESINPERIOD('Table'[date],SELECTEDVALUE('Table'[date]),14,DAY))
The result looks like this:
Here is the pbix.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.