- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

WEEKLY TRENDS comparison
Hi, I have daily data entry I just want to get the weekly trends comparison example my data is
Date | Quantity |
1-Jan | 1 |
2-Jan | 1 |
3-Jan | 1 |
4-Jan | 1 |
5-Jan | 1 |
6-Jan | 1 |
7-Jan | 1 |
8-Jan | 1 |
9-Jan | 1 |
10-Jan | 1 |
11-Jan | 1 |
12-Jan | 1 |
13-Jan | 1 |
14-Jan | 1 |
1-Feb | 2 |
2-Feb | 2 |
3-Feb | 2 |
4-Feb | 2 |
5-Feb | 2 |
6-Feb | 2 |
7-Feb | 2 |
8-Feb | 2 |
9-Feb | 2 |
10-Feb | 2 |
11-Feb | 2 |
12-Feb | 2 |
13-Feb | 2 |
14-Feb | 2 |
I want my result to show like this if i select the date filter . is it possible to put it in graph as well? please help. Thank you:)
Month | Week | Total |
Jan 1-Jan 7 | week 1 | 7 |
Feb 1- Feb 7 | week 1 | 14 |
Jan 8-Jan 14 | week 2 | 7 |
Feb 8- Feb 14 | week 2 | 14 |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @jayceeb ,
In Power BI Desktop, if you want to use a DAX statement after selecting a date, you need to strictly follow the Week rule on the calendar to do so.
WeeklyTotal =
CALCULATE(
[TotalQuantity],
ALLEXCEPT('Table', 'Table'[MonthYear], 'Table'[WeekNumber])
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I create a table as you mentioned.
Then I create two calculated columns and here are the DAX codes.
Next I think you can create a new table.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hi i got it however the date is not arrange.
i use the sorting but still mixed. and in the table wek1 and week 6 is the same date. i also use filter for the dates. how to arrange the date please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @jayceeb ,
In Power BI Desktop, if you want to use a DAX statement after selecting a date, you need to strictly follow the Week rule on the calendar to do so.
WeeklyTotal =
CALCULATE(
[TotalQuantity],
ALLEXCEPT('Table', 'Table'[MonthYear], 'Table'[WeekNumber])
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@jayceeb , You have create week columns in you table
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],1)+1 //Sunday
Week Start date Monday = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1 //Monday
Week End date = [Week Start date] +6
format and use in other column
You can check here
https://www.youtube.com/watch?v=cyWVzAQF9YU&t=40648s
Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e...
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
06-06-2024 03:45 AM | |||
10-17-2024 02:20 PM | |||
02-29-2024 04:44 AM | |||
08-08-2024 04:39 AM | |||
11-22-2024 12:52 AM |