Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gancw1
Resolver II
Resolver II

Unpivot and date fill

I have the data in this format 

 

IDSNItem DescriptionStart DateMonth 1Month 2Month 3
1101 Printer cartridge1 Apr 202010200
1112Ruler1 Nov 202020305

 

How do I unpivot and fill in the month so that the table looks like this

 

IDSNItem DescriptionStart DateMonthQuantity
110178 Printer cartridge1 Apr 20201 Apr 202010
110178 Printer cartridge1 Apr 20201 May 202020
110178 Printer cartridge1 Apr 20201 Jun 20200
1112Ruler1 Nov 20201 Nov 202020
1112Ruler1 Nov 20201 Dec 202030
1112Ruler1 Nov 20201 Jan 20215

 

1 ACCEPTED SOLUTION

2 REPLIES 2
jppv20
Solution Sage
Solution Sage

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.

@jppv20 ,

Thanks ! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.