Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have the data in this format
| ID | SN | Item Description | Start Date | Month 1 | Month 2 | Month 3 |
| 110 | 1 | Printer cartridge | 1 Apr 2020 | 10 | 20 | 0 |
| 111 | 2 | Ruler | 1 Nov 2020 | 20 | 30 | 5 |
How do I unpivot and fill in the month so that the table looks like this
| ID | SN | Item Description | Start Date | Month | Quantity |
| 110 | 178 | Printer cartridge | 1 Apr 2020 | 1 Apr 2020 | 10 |
| 110 | 178 | Printer cartridge | 1 Apr 2020 | 1 May 2020 | 20 |
| 110 | 178 | Printer cartridge | 1 Apr 2020 | 1 Jun 2020 | 0 |
| 111 | 2 | Ruler | 1 Nov 2020 | 1 Nov 2020 | 20 |
| 111 | 2 | Ruler | 1 Nov 2020 | 1 Dec 2020 | 30 |
| 111 | 2 | Ruler | 1 Nov 2020 | 1 Jan 2021 | 5 |
Solved! Go to Solution.
Hi @gancw1 ,
First select columns "ID", "SN", "Item Description", "Start Date" and choose unpivot other columns.
Then create a new column with this formula:
Month =
Date.AddMonths([Start Date],Number.FromText(Text.End([Attribute],1))-1)
If I answered your question, please mark it as a solution to help other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 14 | |
| 14 | |
| 10 | |
| 8 |