Forum Discussion

mark_carlisle's avatar
mark_carlisle
Icon for Advocate IV rankAdvocate IV
8 years ago
Solved

Compare Date Time to NOW()

I am building a PowerBI report based off data in a SharePoint list.   I am looking to have a new column within the data to work out if the item is within SLA or not and gives the output Yes, No or ...
  • mark_carlisle's avatar
    mark_carlisle
    8 years ago
    Within SLA = 
    IF(
    	'Data Services Dataset List'[Status]="Investigation", "Investigation", 
    	IF(
    		'Data Services Dataset List'[Status]="Completed", 
    		IF(
    			VALUE('Data Services Dataset List'[Modified]) <= VALUE('Data Services Dataset List'[SLA Date]), "Yes", "No"
    		), 
    		IF(
    			VALUE(NOW()) <= VALUE('Data Services Dataset List'[SLA Date]), "Yes", "No"
    		)
    	)
    )

    Resolved with the above. Thanks for your help.