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
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
Employee
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
Employee
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
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