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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Help With Relationship Table Where Values are Total vs Net

I am not sure what I'm looking to do can be logically done, so I am open to suggestions. Essentially, what I want to do is link up two tables with a dimension table. The dimension table has: Labor Net and Overtime Net. One of my fact tables has the net values only, so it matches up with the dimension table perfectly; however, the second fact table has Labor Base and Labor Deductions and Overtime Base and Overtime Deductions (i.e. Labor Base - Labor Deductions = Labor Net). I want to be able to build the relationship on the net values, how can I link them together? 

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

From what I'm understanding, you cannot do (should not do more likely) what you are attempting to do using a dimension table (in the "traditional" sense). Dimension tables typically contain the unique values (usually text/date fields)  contained in fact tables to enable filtering in visuals, pages and measures etc.

So what you are suggesting would imply including the unique values of an aggregation from your fact tables (which in most cases makes little sense).

What you can do, is set up a table (using the "enter data" option in the home ribbon) with the values "Labor net" and "Overtime net". Let's call this table Cost Type.

Cost type table.JPG

 


This table is independent (unrelated) from your fact tables (ie, there are no relationships). You can use this table as a slicer/filter etc in your report.

model.JPG

 

You then write measures referencing the selection made on this table (as slicer etc).

For example:

 

 

Cost Type selection = IF(SELECTEDVALUE('Cost Type'[Cost Type]) = "Labor Net", [Sum of Labor Net], [Sum of Overtime Net Net])

 

 

 

And use this measure in your visuals:

Rep Page.JPG

 

Hope that helps. (I've attached the sample PBIX file for reference)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

From what I'm understanding, you cannot do (should not do more likely) what you are attempting to do using a dimension table (in the "traditional" sense). Dimension tables typically contain the unique values (usually text/date fields)  contained in fact tables to enable filtering in visuals, pages and measures etc.

So what you are suggesting would imply including the unique values of an aggregation from your fact tables (which in most cases makes little sense).

What you can do, is set up a table (using the "enter data" option in the home ribbon) with the values "Labor net" and "Overtime net". Let's call this table Cost Type.

Cost type table.JPG

 


This table is independent (unrelated) from your fact tables (ie, there are no relationships). You can use this table as a slicer/filter etc in your report.

model.JPG

 

You then write measures referencing the selection made on this table (as slicer etc).

For example:

 

 

Cost Type selection = IF(SELECTEDVALUE('Cost Type'[Cost Type]) = "Labor Net", [Sum of Labor Net], [Sum of Overtime Net Net])

 

 

 

And use this measure in your visuals:

Rep Page.JPG

 

Hope that helps. (I've attached the sample PBIX file for reference)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@Anonymous , Not very clear.

In the second table create a new column

Labor Net = Labor Base - Labor Deductions

 

And join with dimension table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Not seeing the entiretly of your model so this comment is a bit of a shot in the dark, but...

Why are you linking to a dimension table on what seems to be MEASURE values? Normally links to dimension tables are done on KEY values: primary keys, surrogate keys, etc.

 

Not saying it can't be done, but just seems an odd way to relate tables. 




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.