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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Ashish9201
Helper I
Helper I

Inactive Relationship

Hi All,

 

I have below tables which has active and inactive relationship assigned, Highlighted Relation is an inactive relationship between dim date and timeentry start date. I am doing a comparison between Forecasted hours(From table bookable resource) and Actual Hours(From table Timeentry) here.

Ashish9201_0-1661248157012.png

 

Below is the result which i am getting currently while visualizing data in table. I am getting correct value in forecasted table since this has active relation with dim date table, however i am not getting correct value for actual hours since the table relation is not active.

Have tried using this formula to get actual hours worked : 

Actual Hours Worked = CALCULATE(SUM(msdyn_timeentry[Duration (Hours)]),USERELATIONSHIP(msdyn_timeentry[Start],'Dim Date'[Date])). Can someone help me on this?

Ashish9201_1-1661248342706.png

 

Regards,

Ashish Gupta

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ashish9201 , Many to Many bi- directional indexes are creating loops, so relationships are not valid and inactive. Please correct the model using bridge tables 

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

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

View solution in original post

2 REPLIES 2
Ashish9201
Helper I
Helper I

Hi @amitchandak ,

 

Let me explain the relationship of tables here, hope this can help you in resolving my difficulty

Ashish9201_1-1661250184317.png

 

1 relation is inactive between "Dates" Many to many (table 1 and 2)

2 relation is inactive between "Projects" Many to many (table 1 and 2)

3 relation is active between "Resources" Many to many (table 1 and 2)

4 relation is active between "Dates" Many to one (table 2 and 3)

5 relation is inactive between "Dates" Many to one (table 1 and 3)

amitchandak
Super User
Super User

@Ashish9201 , Many to Many bi- directional indexes are creating loops, so relationships are not valid and inactive. Please correct the model using bridge tables 

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solutio...

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.