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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
gk2go
Helper II
Helper II

How to show sum grouped by field in a transitively related table?

I have the following three tables, and i would to create a visual that shows PVs grouped by Tag.

How shall i set the relationships to achieve that?

 

I expected the following would do it:

1. One-to-many relationship between Pages_DimTable and Page-Tags Table on Page field

2. Many-to-one relationship between PV_FactTable and Pages_DimTable on Page field

 

But when I put them in a visual it just shows with equal sized boxes, not reflecting the actual sum of PVs per Tag.

What's wrong?

 

gk2go_0-1620385114260.png

 

1. PV_FactTable

|| Date | Page | PVs ||

14-02-2021 | Page A | 14

15-03-2021 | Page B | 15

16-03-2021 | Page C | 16

 

2. Pages_DimTable

|| Page | Att1 | Att2 ||

Page A | A1 | A2

Page B | B1 | B2

 

3. Page-Tags Table

|| Page | Tag ||

Page A | Tag-1

Page A | Tag-2

Page B | Tag-3

Page B | Tag-2

Page C | Tag-1

Page C | Tag-2

1 ACCEPTED SOLUTION
gk2go
Helper II
Helper II

The solution was to set the first relationship to filter in both directions

View solution in original post

2 REPLIES 2
gk2go
Helper II
Helper II

The solution was to set the first relationship to filter in both directions

Anonymous
Not applicable

it is not clear to me what you expect. but perhaps this could bring us closer.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors