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
Anonymous
Not applicable

Combining two columns with DAX (Or Power Query)

Hi guys,

 

I want to combine two columns with dax from two different datasets. These datasets however only differ in date. One dataset goes till 30 juli 2019 and the other dataset starts from 31 juli. So the two columns have similar names (Column Name 1 and Column Name 1), and only differ in date as mentioned.

So I have Column Name 1 that ends on 30 juli and Column Name 1 that starts on 31 juli. How do I combine/add these columns with eachother with DAX or Power Query.

 

Thanks in advance!

 

 

 

7 REPLIES 7
Anonymous
Not applicable

Hi,

From the explanation given, it seems you have 2 datasets with one column.

In the query editor, there is an option called 'Append Queries'. You can use it to merge the 2 datasets.

Thanks.

Anonymous
Not applicable

Hi @Anonymous ,

 

I dont want to merge whole of the 2 datasets. I only want to pick out the specific columns (which is 2 columns that are similar and have the same name but only differ date; one ends 30 juli other starts 31 juli). To be more specific these columns are about Loanmortgage.

Anonymous
Not applicable

Hi,

Sorry, I am still unclear about the requirement. Do you want to combine these 2 columns and create a new table?

Thanks.

Anonymous
Not applicable

@Anonymous 

Yes, exactly.

 

Thanks

Anonymous
Not applicable

Hi,

Try to use this:

New Table = UNION( VALUES( Dates1[Date] ) , VALUES( Dates2[Date] ) )

Dates1, Dates2 are the table names.

Thanks.

Anonymous
Not applicable

It worked, however when I try to establish relationships I get the following message: "a circular dependency was detected".

 

@Anonymous 

Anonymous
Not applicable

Can you share your pbix if possible or some sample data from both the tables?

Thanks.

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.