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
Prabha45
Helper III
Helper III

Data model - Unpivot

Hi All,

I have a table(data model) like the below. For every quarter there will be 2 new columns( Status and comments).
I tried unpivot the Q3, Q4 status in one table and in the other by Q3, Q4 comments. And merge these two tables but I did get the required table 2. What transformations I need to perform to get table 2.

CategorySub CategoryQ3- 2023 statusQ3- 2023 commentsQ4- 2023 status Q4- 2024 commentsOwner
RoadBikeIn progressWorkingIn progressN/ADavid
RoadCarIn progressUnder validationCompletedN/ASmith
ElectronicsPhoneIn progressWorkingCompletedN/AHenry
ElectronicsLaptopIn progressManufacturingIn progressManufacturingMicheal
ElectronicsHeadphonesIn progressN/ADelayedWorkingNeil
ClothesShirtIn progressTransportationDelayedReceived on MondayPeter
ClothesTrousersIn progressTransportationCompletedDoneChris


 Table 2 - 

CategorySub categoryQuarterStatusCommentsOwner
RoadBikeQ3-2023In progressWorkingDavid
RoadBikeQ4-2023In progressN/ADavid
RoadCarQ3-2023In progress Under validationSmith
RoadCarQ4-2023CompletedN/ASmith
ElectronicsPhoneQ3-2023In progressN/AHenry
ElectronicsPhoneQ4-2023CompletedWorkingHenry
ElectronicsLaptopQ3-2023In progressManufacturingMicheal
ElectronicsLaptopQ4-2023In progressManufacturingMicheal
ElectronicsHeadphonesQ3-2023In ProgressN/ANeil
ElectronicsHeadphonesQ4-2023DelayedWorkingNeil


Thanks in advance

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_2.png

 

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_2.png

 

Thank you very much. Can you please explain the grouped rows step

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but after unpivotting each table, please try APPEND function in Power Query Editor.

 

Append queries - Power Query | Microsoft Learn

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors