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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Data Modeling Two Tables 1 to many

Hi everyone,

 

I'm struggling with the following issue:

I have two tables:

- dimension table with unique combination employeenumber-cost centre, employeenumber and cost centre

- fact table with unique employeenumber-cost centre, employee number, cost centre, weeknumber and number of classhours

The relationship between the two tables is one to many (unique combination employeenumber-cost centre is key)

One row from the fact table is shown below:

willemynjansen_1-1679041986603.png

When I'm putting the employeenumber from the dim table together with classhours from the fact table it just shows up like this:

willemynjansen_0-1679041837536.png

That's fine. 

 

When I want to add the costcentre, it's turning empty:

willemynjansen_2-1679042079503.png

That's weird, because this employee has classhours in a certain cost centre..

It's neither showing up when I just add the unique combination of employeenumber/costcentre

willemynjansen_3-1679042277079.png

 

Does anyone know why this is not showing up?

 

Thanks!

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Hope the cost center is coming from dim and it sum/Some Agg of number of classhours.

Ideally, it should work.

If measure has some calculation you need to share

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.