March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi I have following table with Items sale per month e year per row.
Each items has more record
Item_No | Somma di Sales_Entry_No | Sales_Post_Date | Somma di Sold_Quantity | Month | Year |
T- Shirt 32 | 8149 | 10/06/2021 00:00 | 0 | Giugno | 2021 |
T- Shirt 32 | 8237 | 16/06/2021 00:00 | 25 | Giugno | 2021 |
T- Shirt 32 | 30875 | 28/06/2022 00:00 | 0 | Giugno | 2022 |
T- Shirt 32 | 30970 | 30/06/2022 00:00 | 25 | Giugno | 2022 |
Jacket 211 | 6527 | 04/05/2021 00:00 | 0 | Maggio | 2021 |
Jacket 211 | 6528 | 05/05/2021 00:00 | 400 | Maggio | 2021 |
Jacket 211 | 34239 | 13/12/2021 00:00 | 200 | Dicembre | 2021 |
Jacket 211 | 51688 | 15/12/2021 00:00 | 0 | Dicembre | 2021 |
Jacket 211 | 38939 | 05/01/2022 00:00 | 600 | Gennaio | 2022 |
Jacket 211 | 49761 | 17/02/2022 00:00 | 400 | Febbraio | 2022 |
Jacket 211 | 83009 | 20/04/2022 00:00 | 500 | Aprile | 2022 |
Jacket 211 | 71665 | 05/12/2022 00:00 | 500 | Dicembre | 2022 |
Jacket 211 | 144664 | 15/12/2022 00:00 | 1200 | Dicembre | 2022 |
Jacket 211 | 75404 | 06/02/2023 00:00 | 800 | Febbraio | 2023 |
Socket | 14734 | 05/03/2021 00:00 | 200 | Marzo | 2021 |
Socket | 37830 | 16/07/2021 00:00 | 50 | Luglio | 2021 |
Socket | 19327 | 19/07/2021 00:00 | 0 | Luglio | 2021 |
Socket | 19415 | 20/07/2021 00:00 | 200 | Luglio | 2021 |
Socket | 60562 | 25/10/2021 00:00 | 200 | Ottobre | 2021 |
Socket | 116334 | 11/05/2022 00:00 | 250 | Maggio | 2022 |
Socket | 72099 | 12/12/2022 00:00 | 200 | Dicembre | 2022 |
I would like to create a new table with aggred Item per sale last 12 month
for instance
Item_No | Sold_Quantity 12 month |
T- Shirt 32 | 35456 |
Jacket 211 | 232456 |
Socket | 12345 |
@fabiopaturzo , better to create a measure with help from date table
example
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))
window function you can also use
Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
I would like to have the total sales per Item
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |