Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to show data from 2 weeks before and after a specified date

Hi,

 

I am trying to show the sum of a set of data from two weeks before a certain date, and compare it with the sum of the data in the 2 weeks after the date. I would like the date to be set as a filter. I tried doing this in the Tornado visual, but I can only filter for 2 weeks before or after (not both), and so the data takes each week in the previous 2 weeks and shows that. Does anyone have any ideas on how I could show this data?

 

Thanks!

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

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:

v-cazheng-msft_0-1615787896932.png

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.

 

View solution in original post

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

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:

v-cazheng-msft_0-1615787896932.png

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.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors