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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How do I calculate the weekly amount for a time series plot?

Hi Guys,

I'm trying to plot a time series line graph with week&year and the total weekly amount. I'm not sure how to do this. 

The data looks like below but over 3 years. I would also like to use the forcast feature.

Thanks,

KC

 

 

Unique Date / Daily Amount / Weeknum

25/07/201751573.5330
26/07/201741039.3230
27/07/201729508.3530
28/07/201761868.1430
29/07/201734081.0630
30/07/201732373.4431
31/07/201774694.9331
1/08/201750097.6731
2/08/201739369.0831
3/08/201736823.7331
4/08/201734325.4331
5/08/201726066.1931
6/08/201719731.7732
7/08/201752321.8132
8/08/201746549.6532
9/08/201738040.6132
10/08/201763571.2232
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Create a date table and try plotting on Week start date or Week end date

 

Week Start date = DATEADD('Date'[Date],-1*WEEKDAY('Date'[Date])+1,DAY)
Week End date = DATEADD('Date'[Date],7-1*WEEKDAY('Date'[Date]),DAY)

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Create a date table and try plotting on Week start date or Week end date

 

Week Start date = DATEADD('Date'[Date],-1*WEEKDAY('Date'[Date])+1,DAY)
Week End date = DATEADD('Date'[Date],7-1*WEEKDAY('Date'[Date]),DAY)

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.