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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DieLem
Helper II
Helper II

Graph Using Two Tables

Hi,

 

I have two table that are linked on the a field, "StudentNo". I want to create a pie chart using the StudentNo field from the first table, and and another field from the second table. However it does not seem to work correctly. See below:

 

Graph Query.PNG

 

In A I use both StudentNo and Type from Table1. It works.
In B I use StudentNo from Table2 and Type from Table1. It does not work.
In C I use StudentNo from Table2 and Type from Table1, but I also add the StudentNo to the detail. This creates a graph that looks almost like I need to look in A. It also shows that using the StudentNo and Type from different tables, a relationship can be created.

 

Thus I want it to look like in A, but use values from the two different graphs to achieve. The PBI file ("Graph Query") can be found here:

 

https://drive.google.com/drive/u/0/folders/1P10op_192ac_m-QGqt-QjolaLZSIMc_t

 

Thanks!

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@DieLem,

I note that you create one-to-many relationship between the two tables, however, the StudentNo field of Student table doesn't contain all the possible StudentNo values in StudentNo field of AcademicApplication table, this is the reason why you get wrong result in graph B.

Regards,

Lydia

Community Support Team _ Lydia Zhang
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

1 REPLY 1
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@DieLem,

I note that you create one-to-many relationship between the two tables, however, the StudentNo field of Student table doesn't contain all the possible StudentNo values in StudentNo field of AcademicApplication table, this is the reason why you get wrong result in graph B.

Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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