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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SN1900
Frequent Visitor

IF FORMULAR BASED ON DIFFERENT TABLES

Hello all, 

 

Actually I am trying to create an if formular between two different tables.

 

So what I wanted to do is to compare the event date with the delivery appointment time. 

The relationship for both tables is the Shipment ID. 

 

The Shipment ID and the Delivery Appointment Time is in the  table OTM Shipment analysis. 

The Event time is in the table  OTM Event analysis.

 

I tried the formular with values from one table and then it is working.

(IF(OTM_EventStatus_Analysis[EVENT DATE TIME UTC]-OTM_EventStatus_Analysis[EVENT DATE TIME]>=0;FORMAT(OTM_EventStatus_Analysis[EVENT DATE TIME UTC]-OTM_EventStatus_Analysis[EVENT DATE TIME];"hh:mm:ss");FORMAT(-(OTM_EventStatus_Analysis[EVENT DATE TIME UTC]-OTM_EventStatus_Analysis[EVENT DATE TIME]);"-hh:mm:ss")))
 
But now I want to replace the "Event DATE TIME UTC "with the "DELIVERY APPOINTMENT TIME " but this is not working as the Delivery Appointment time is in another table. 
 
Any ideas how I can change the formular so that my formular is working . I have attached some screenshoots. 
 
Many thanks in advance and best regards 
 
Niclas 

 

 



dataset.PNGrelationship.PNGtable.PNG

1 REPLY 1
kentyler
Solution Sage
Solution Sage

Do the 2 different tables have a relationship ?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors