Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
105 | |
68 | |
48 | |
42 | |
41 |