cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

1 to many relationship providing wrong results in visualization

Hello. I have the following two tables:

Table 1: Position Details

Table 2: Survey

 

There is a M:1 Relationship from Table 1 to Table 2.

When I put fields from both tables into a visualization, aggregations get messed up. 

For example, Table 2 only contains data belonging to specific business units (that's a field in Table 1).

But when I present data in a graph, a number field from Table 2 gets aggregated across all business units in Table 1. See below

 

mmiculcy_0-1632250769709.png

My expectation is to see the average for only the business units that are actually related to table 2.

1 REPLY 1
HotChilli
Super User
Super User

When you see something like this either :

a) the relationship is not working (wrong data type or no matching data) OR

b) the relationship is the wrong way round.

 

I suspect it's b) but I can't quite work out which fields from which table are in the visual.

This part "M:1 Relationship from Table 1 to Table 2" implies Table2 is filtering Table1. Is that what you want?

You want the dimension table to filter the fact table.

 

Is that enough to get you closer to the problem?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors