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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors