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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Combine 2 Y or N columns in different tables so that I can make 1 pie chart

Hi,

 

I want to combine a N or Y column in a table called AIP, with a N or Y column in a table called OIP to make 1 pie chart that shows N or Y overall

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

= Table.Combine({AIP, OIP})

In Power Query, the above is the code to append two or more tables.

I started with two dissimiliar tables, combined the two and created a new table. I used the Power Query Append Queries as New.

Power Query used null for the data in unshared columns.

Then you could delete any columns you don't need by selecting the columns you do need, and Delete Columns Other. 

Probably easier and quicker. No duplication required.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

AIP.PNG   OIP.PNG 

 

appendqueries.PNG 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hey Guys,

 

Thanks for the reply.  I just duplicated both tables deleted all other columns and left the N,Y columns,  then appended to a new table.  I was hoping to find a code to just create a table that would append the column without having to duplicate and then append.

Hi @Anonymous ,

 

= Table.Combine({AIP, OIP})

In Power Query, the above is the code to append two or more tables.

I started with two dissimiliar tables, combined the two and created a new table. I used the Power Query Append Queries as New.

Power Query used null for the data in unshared columns.

Then you could delete any columns you don't need by selecting the columns you do need, and Delete Columns Other. 

Probably easier and quicker. No duplication required.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

AIP.PNG   OIP.PNG 

 

appendqueries.PNG 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ashish_Mathur
Super User
Super User

Hi,

Use the Append feature of the Query Editor.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Nathaniel_C
Super User
Super User

Hi @Anonymous ,

So what would the logic be? If 2 Ys then Y, and if two Ns then N? What about the other two cases Y/N, N/Y?

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors