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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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