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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.