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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ArunKumar3333
New Member

Power Query Possibility

I have a question below is the sample dataset , i want to append all the tables , so the result will be similar to the another pic , is this possibile , can anyone share me the steps pls 

 

ArunKumar3333_0-1693222068328.png

 result , like this for other companies and month and sub abc , def , ghi too 

ArunKumar3333_1-1693222151458.png

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the MS Excel file with 3 tabs - one for each tables that you have shown in your image.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ArunKumar3333
New Member

is it possible for you to share the pbix file too pls ?

JoeBarry
Solution Sage
Solution Sage

Hi @ArunKumar3333 

 

Import the Excel as it is.

 

  • Remove the first Row with Year and the Months in it
  • Then choose Use First Row as headers. Rename each column to ABC-1, DEF-1, GHI-3 ..... the number represents the month number.
  • Highlight all columnns except for the customer column and right click and choose unpivot columns
  • Add a custom column and call it year and type in the Year convert to text
  • Then highlight the column called Attribute, this should contain the Column name and month number.
  • Go to the transform tab and choose splitt by delimter. It automatically chooses - as the delimter but if it doesn't please choose this. This will create an Attribute.2 column.
  • We now need to create a date column. Add a custom column and name it Date
  • Add this code

 

 

"01/" & [Attribute.2] & "/" & [Year]​

 

 

  • Convert to date

Repeat for the other tables and make sure that all column names are the same in each table and Append all the tables together.

 

JoeBarry_0-1693223598652.png

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.