- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.
Category | Sub Category | Q3- 2023 status | Q3- 2023 comments | Q4- 2023 status | Q4- 2024 comments | Owner |
Road | Bike | In progress | Working | In progress | N/A | David |
Road | Car | In progress | Under validation | Completed | N/A | Smith |
Electronics | Phone | In progress | Working | Completed | N/A | Henry |
Electronics | Laptop | In progress | Manufacturing | In progress | Manufacturing | Micheal |
Electronics | Headphones | In progress | N/A | Delayed | Working | Neil |
Clothes | Shirt | In progress | Transportation | Delayed | Received on Monday | Peter |
Clothes | Trousers | In progress | Transportation | Completed | Done | Chris |
Table 2 -
Category | Sub category | Quarter | Status | Comments | Owner |
Road | Bike | Q3-2023 | In progress | Working | David |
Road | Bike | Q4-2023 | In progress | N/A | David |
Road | Car | Q3-2023 | In progress | Under validation | Smith |
Road | Car | Q4-2023 | Completed | N/A | Smith |
Electronics | Phone | Q3-2023 | In progress | N/A | Henry |
Electronics | Phone | Q4-2023 | Completed | Working | Henry |
Electronics | Laptop | Q3-2023 | In progress | Manufacturing | Micheal |
Electronics | Laptop | Q4-2023 | In progress | Manufacturing | Micheal |
Electronics | Headphones | Q3-2023 | In Progress | N/A | Neil |
Electronics | Headphones | Q4-2023 | Delayed | Working | Neil |
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you very much. Can you please explain the grouped rows step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-10-2024 04:33 AM | |||
10-22-2024 01:24 AM | |||
05-26-2024 08:54 PM | |||
01-18-2024 12:33 PM | |||
07-26-2024 12:47 AM |
User | Count |
---|---|
122 | |
107 | |
85 | |
52 | |
46 |