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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
harshadrokade
Post Partisan
Post Partisan

Create single table with multiple columns

Thanks for looking into the query.

 

I have below data

IDLatest_updated_Date__cLast_update_Date_1__cLast_update_Date_2__cLast_update_Date_3__cLast_update_Date_4__cLast_update_Date_5__cLatest_Stage__cLast_update_stage_1__cLast_update_stage_2__cLast_update_stage_3__cLast_update_stage_4__cLast_update_stage_5__cAmt
122333September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 AAAAA 16
122334September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 BAAAA 16
122335September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 AAAAA 13
122336September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 AAAAA 9
122337September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 CAAAA 4
122338September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 BBBB  9
122339September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 AAAAA 4
122340September 5, 2023August 20, 2023August 5, 2023July 20, 2023July 5, 2023 BAADD 15

 

I have created seperate tables as below with the same.

harshadrokade_0-1694848633624.png

As the stages are common in all the tables above, How can I create a single table where the Stage column will come only once, There will be multiple date columns with amt as below-

harshadrokade_1-1694848801245.png

 

 

1 ACCEPTED SOLUTION
mickey64
Super User
Super User

Step 1: I select 2 columns and merge with space.

mickey64_0-1694867888792.png

Step 2: I change column name, "Date Stage 0".

mickey64_1-1694868068437.png

Step 3: I do same steps for other columns.

mickey64_2-1694868229632.pngmickey64_3-1694868292770.pngmickey64_4-1694868343855.pngmickey64_5-1694868387072.pngmickey64_6-1694868452637.png

Step 4: I select "Date Stage 0"-"Date Stage 5" and pivot...

mickey64_7-1694868698346.pngmickey64_8-1694868746763.png

Step 5: I separate a column with space.

mickey64_9-1694869016238.pngmickey64_10-1694869056478.png

Step 6: I change 2 names of columns.

mickey64_11-1694869166717.png

Step 7: I go to Power BI Desktop and make matrix.

mickey64_12-1694869394960.png

 

 

View solution in original post

1 REPLY 1
mickey64
Super User
Super User

Step 1: I select 2 columns and merge with space.

mickey64_0-1694867888792.png

Step 2: I change column name, "Date Stage 0".

mickey64_1-1694868068437.png

Step 3: I do same steps for other columns.

mickey64_2-1694868229632.pngmickey64_3-1694868292770.pngmickey64_4-1694868343855.pngmickey64_5-1694868387072.pngmickey64_6-1694868452637.png

Step 4: I select "Date Stage 0"-"Date Stage 5" and pivot...

mickey64_7-1694868698346.pngmickey64_8-1694868746763.png

Step 5: I separate a column with space.

mickey64_9-1694869016238.pngmickey64_10-1694869056478.png

Step 6: I change 2 names of columns.

mickey64_11-1694869166717.png

Step 7: I go to Power BI Desktop and make matrix.

mickey64_12-1694869394960.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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