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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Earkkaperk
Frequent Visitor

Left Outer join with DAX

I have 3 table here

Earkkaperk_0-1725507383393.png

 

This is what I get in PBI when I created relationship with 1-many ( machine status to facttable) and (alarmcode to facttable)

but I miss the result of loss duration in some parts (ex. 9.08AM)

Earkkaperk_1-1725507390854.png

 

This is when I drag Machinestatus out, you can see the result of 9.08 AM

Earkkaperk_2-1725507413487.png

 

 

So I think I need to do some leftouterjoin but I cannot do this with power query

Is there any solution for this?

Thank you

1 REPLY 1
bhanu_gautam
Super User
Super User

@Earkkaperk , You can try

 

You can create a calculated column in your fact table that calculates the loss duration based on the relationships you have set up

LossDuration =
   RELATED(MachineStatus[Duration])
 
Create a measure for aggregation
TotalLossDuration =
   SUM(FactTable[LossDuration])
 
Than you can use DAX for left outer join
 
 LossDuration =
   LOOKUPVALUE(MachineStatus[Duration], MachineStatus[MachineID], FactTable[MachineID])



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.