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
PatelYU
Frequent Visitor

If Function with dates measure then result but not giving accurate results

HI there,

 

I am using a function of 

Days =
IF ( (MAX('Maintenance Labour Utilisation'[Posting Date])) <= (MIN('Maintenance Details'[Basic Finish Date])), "On Time", "Late")
 
However, this fuction does not work completely. I have a posting date that is one day prior to basic finish date and it is showing on my table as LATE when in fact it is still on time. I do not understand this issue if someone can help me!
 
Below is my table. The left one shows the results of on time or late, and the right table is showing the posting dates of those work orders. As you can see all the selected work orders I am showing have a posting date of 28th October but in the column of 29th October those orders are showing as LATE when in fact they are not.
Screenshot 2020-11-03 101855.gif
 
Thank you for your help!
2 REPLIES 2
amitchandak
Super User
Super User

@PatelYU , Can you share sample data and sample output in table format?

hi there,

 

sure. In excel i used the same formula i used in power bi.

IF= "basic finish date" <= "posting date", "on time", "late"

 

Work Orde NumberBasic Finish DateBasic Start Dateposting dateCompleted Not Completed 
140010721131-Dec-1908-Mar-1921/01/2020Late 
140011905806-Apr-2031-Mar-2006/04/2020On Time 
140011918119-Sep-2029-Nov-2018/09/2020On Time 
140011891329-Dec-2029-Nov-2012/09/2020On Time 
140011915129-Dec-2029-Nov-2016/08/2020On Time 
140011905830-Apr-2031-Mar-2006/04/2020On Time 
140011905830-Apr-2031-Mar-2006/04/2020On Time 
140011905830-Apr-2031-Mar-2006/04/2020On Time 
140011905830-Apr-2031-Mar-2006/04/2020On Time 
140011915129-Jul-2029-Nov-2016/08/2020Late 
140011915129-Dec-2029-Nov-2016/08/2020On Time 
140011891329-Dec-2029-Nov-2012/09/2020On Time 
140011891329-Dec-2029-Nov-2012/09/2020On Time 
140011891329-Jun-2029-Nov-2012/09/2020Late 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 
140011918129-Dec-2029-Nov-2018/09/2020On Time 

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.