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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
cristianml
Post Prodigy
Post Prodigy

Combine 2 tables - PQ

Hi,

 

I need help with with some work I need to solve. I have a main Table with data that I get this updated using "get data from workbook" cause i use a Macro to put many reports from a folder to a Excel tab. So with this Main table I need to add or concatenate this with a Table that have range of period. The problem is that I don't know how.

 

Main table
StageClient idCSGWorkStart DateTypeProjectionSGAmount
DataDataDataDataDateDataDataDataAmount
DataDataDataDataDateDataDataDataAmount
DataDataDataDataDateDataDataDataAmount

 

Table option 1
Jan-20Feb-20Mar-20Apr-20May-20
CalculationCalculationCalculationCalculationCalculation
CalculationCalculationCalculationCalculationCalculation
CalculationCalculationCalculationCalculationCalculation
CalculationCalculationCalculationCalculationCalculation
CalculationCalculationCalculationCalculationCalculation

 

Table option 2
Jan-20Feb-20Mar-20
September-15Q1FY16
October-15Q1FY16
November-15Q1FY16
December-15Q2FY16

 

 

My result table should be:

 

Result TABLE
StageClient idCSGWorkStart DateTypeProjectionSGAmountJan-20Feb-20Mar-20Apr-20
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation
DataDataDataDataDateDataDataDataAmountCalculationCalculationCalculationCalculation

 

How can I join the information to get this result table ?

 

Thanks !

 

3 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @cristianml 

 

You can use Merge Queries as per below.
https://www.youtube.com/watch?v=dTdFt9AvDHA

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

Greg_Deckler
Community Champion
Community Champion

Hard to follow. Actual sample/example data is better generally. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490.

 

In your second table, generally, having columns like that by month/date is difficult. Better to unpivot those columns.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

dax
Community Support
Community Support

Hi @cristianml , 

I think this is hard to achieve this goal, I didn't view any relationship between fisrt two tables , so I think it is hard to merge it or append it. In addition, I also don't know what is your expected output. So if possible could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi @cristianml , 

I think this is hard to achieve this goal, I didn't view any relationship between fisrt two tables , so I think it is hard to merge it or append it. In addition, I also don't know what is your expected output. So if possible could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

Hard to follow. Actual sample/example data is better generally. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490.

 

In your second table, generally, having columns like that by month/date is difficult. Better to unpivot those columns.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Mariusz
Community Champion
Community Champion

Hi @cristianml 

 

You can use Merge Queries as per below.
https://www.youtube.com/watch?v=dTdFt9AvDHA

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors