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
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.

Helpful resources

Announcements
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.

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.