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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Krijgersss
Helper II
Helper II

need some help to transform my table

Hello  i need some help wit transforming i thank it something with pivot table.

i have this table ( see screenshot) 

Krijgersss_0-1721206884550.png

 

 

colum 2 is my key and the colom with the number values i need. now all these colums are months iwant all this colums in colum with the date of the month like this 

it needs to be like the tabel i made below so colum 1 and 2 will stay the same and all the other colums wil have a date  with the value next to it so it has to be something wit pivot is what i think


colum1colum 2 (key)Date

values

omzet digitale8040001-01-2024

value of colum jan

omzet8045001-02-2024

Values of feb 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Krijgersss , You can do that using unpivot 

 

In the Power Query Editor, select the columns that you want to keep as they are (e.g., colum1 and colum2).
Right-click on the selected columns and choose Unpivot Other Columns. This will transform the monthly columns into rows.

Add a custom column to convert the month names to dates. You can use a formula like this:


#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Date", each Date.FromText("01-" & [Attribute] & "-2024"), type date)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Krijgersss , You can do that using unpivot 

 

In the Power Query Editor, select the columns that you want to keep as they are (e.g., colum1 and colum2).
Right-click on the selected columns and choose Unpivot Other Columns. This will transform the monthly columns into rows.

Add a custom column to convert the month names to dates. You can use a formula like this:


#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Date", each Date.FromText("01-" & [Attribute] & "-2024"), type date)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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