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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

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

@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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.