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

DAX issue with USERRELATIONSHIP

Hi Community,

I need help with a measure. I have 2 tables from different sources and a Calender table. I related the two tables with an inactive relationship, so that I could use userrelationship in a measure. I have used a measure from table1 in table2. The results are different.  M_hrs worked is the measure from table1, used as 'hrs_wrkd' in table2. On the report, for comparision sake I have two separate pages.

Capture_903.PNG

Please suggest how can I fix this. 

 

 

TIA

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@Anonymous  I'm not sure what the difference is between your two tables. You have two main options: 

Option A: Combine the two tables using an append if they have similar columns


Option B: (This is what I'm guessing you might choose??) You will need a Dimension table for every value you want to compare both tables by. You already have Date, but you need one for Employee. So create a DimEmployee table that has each employee once exactly, relate that to both tables using 1 to many. You don't need your inactive relationship anymore. Use the DimEmployee[Employee] in all your visuals and then it will create measures accurately. 

 

Excel with Allison: It's Complicated: Relationships in Power BI Part 1 (Fact vs Dimension)


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

1 REPLY 1
AllisonKennedy
Super User
Super User

@Anonymous  I'm not sure what the difference is between your two tables. You have two main options: 

Option A: Combine the two tables using an append if they have similar columns


Option B: (This is what I'm guessing you might choose??) You will need a Dimension table for every value you want to compare both tables by. You already have Date, but you need one for Employee. So create a DimEmployee table that has each employee once exactly, relate that to both tables using 1 to many. You don't need your inactive relationship anymore. Use the DimEmployee[Employee] in all your visuals and then it will create measures accurately. 

 

Excel with Allison: It's Complicated: Relationships in Power BI Part 1 (Fact vs Dimension)


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.