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
Kimia79
Frequent Visitor

Having two table side by side

 Hi,

 

I have two tables with almost the same data. The first one shows the current Subject pattern, and the second one shows the Online subject. 

Kimia79_0-1634626242591.png

Kimia79_1-1634626302832.png

I need to see these two tables side by side—something like this, but in power bi.

 

Kimia79_3-1634626569106.png

 

Can Anyone help me?

 

https://www.dropbox.com/s/a4li07xl31xi5to/online%20subject.pbix?dl=0

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Kimia79 Just create pivot table based on result table with 'Name' and 'Teacher' on rows, 'Current/Online' and 'Subject' on columns and 'Values' on values (in last message I missed one column you should get in the end result - 'Values').

View solution in original post

9 REPLIES 9
v-shex-msft
Community Support
Community Support

Hi @Kimia79,

Did these suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

@Kimia79 You need to create two tables with four fields: "Name", "Teacher", "Subject", "Current/Online".

For that you should unpivot columns with subjects and rename new column as "Subject"; then add new cutom columns "Current/Online" and type in for each table as a value "Current subject pattern" and "Online subject pattern" respectively. After that just append two tables.

Thanks for your reply. How can I see the information in one table like the third picture I posted?

Anonymous
Not applicable

@Kimia79 Just create pivot table based on result table with 'Name' and 'Teacher' on rows, 'Current/Online' and 'Subject' on columns and 'Values' on values (in last message I missed one column you should get in the end result - 'Values').

VahidDM
Super User
Super User

Hi @Kimia79 

 

You can merge those two tables in the Power Query.

 

see this link:

https://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query

 

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

Appreciate your Kudos!!

 

It becomes like this.

 

Kimia79_0-1634628451543.png

 

Now expand that ONLINE column and select those required columns.

 

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

 

Appreciate your Kudos!!

 

Do you mean unpivot columns? 

it Doesn't help.

No, dont pivot.

just expand that new column, 

 

https://blog.enterprisedna.co/how-to-merge-queries-in-power-bi/

 

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

 

Appreciate your Kudos!!

 

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.