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
jithinrg
Helper I
Helper I

How one to many relationship works?

I have a dim and fact table connected via one to many relationship.

Dim table : Country with targets

CountryTarget
IN200000
UK500000
US1000000

 

Fact table: Actual transactions

DateCountrySales
1/2/2023IN4567
4/5/2023US56789
3/4/2022US43456
5/6/2021UK125678

 

Relationship : Country(dim) to Country (fact) 

Cardinality : one to many

 

When I dragged Country from fact and target from dim table, with Don't summarize it shows correct values. (implicit measure)

But when i created an explicit measure for Target = SUM (Country[Target]) and dragged into the same table it show total values repeated for each rows.

 

jithinrg_0-1675141754670.pngjithinrg_1-1675141769053.pngjithinrg_2-1675141845334.pngDefault aggregation for both value columns are "Don't summarize"

 

 

So I'm confused, how that works. 

Can anyone help me to understand this is much appreciated.

 

Also I have a question regarding how to model dim tables with target values and connect to a fact table with a project having RLS and page level security. Please share the best practises.

 

1 REPLY 1
amitchandak
Super User
Super User

@jithinrg ,Somehow I see same values

 

In this country, should always be used from Dim table.

 

Or you have use meausre like

Sumx(Summarize(Target, Target[Country], Target[Target]), [Target])

 

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.