Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Dears,
I have a table where I insert the sales per week (table 1), I want to create a new table from this table to group the sales per week while keeping the month column (table 2)
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Month],
'Table'[week],
"Total Sales", SUM ( 'Table'[Sales] )
)
For the [Month] column, you can create calculated columns like:
Month 2 = FORMAT('Table'[Date],"mmm"&"."&"-"&"yy")
The PBIX file is attached for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi,
If you want to get Month from Date, you can use something like below
Table2 =
SUMMARIZE (
ADDCOLUMNS ( Table1, "Month", EOMONTH ( Table1[Date], -1 ) + 1 ),
[Month],
Table1[week],
"TotalSales", SUM ( Table1[Sales] )
)
In general for something like that, having a Calendar table is a better approach except if you are not on a complex model.
Regards
Cedric
@Anonymous ,
Create a new Table using the following:
Table2 = SUMMARIZECOLUMNS( Table1[Month], Table1[Week],
"TotalSales", SUM(Table1[Sales] ))
This should get you what you asked for.
Regards,
Hi @rsbin , thanks for you response
But that is not what I am asking.
the result of your proposition gives this
I am asking the sum of sales per week whith keeping the "Month" column.
Hi @Anonymous ,
Please try:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Month],
'Table'[week],
"Total Sales", SUM ( 'Table'[Sales] )
)
For the [Month] column, you can create calculated columns like:
Month 2 = FORMAT('Table'[Date],"mmm"&"."&"-"&"yy")
The PBIX file is attached for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 37 | |
| 29 | |
| 24 |