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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors