Forum Discussion
Anonymous
5 years agoNot applicable
Can you please help me below SQL statement in power BI
Hi, Can you please help me below SQL statement in power BI: Status='DEL' And DateDiff(day,DateDeliveredToClient,Getdate()) > 15 And ISNULL(DateDiff(day,DateImported,Getdate()),0) Between 1 and 90,Qty,0)) As Qty
Anonymous , Try a new column like
if([Status]="DEL" && datediff([DateDeliveredToClient], today(),day)>15 && datediff([DateImported],today(),day) <=90 && datediff([DateImported],today(),day) >=0 , [Qty],0)
1 Reply
- amitchandak
Super User
Anonymous , Try a new column like
if([Status]="DEL" && datediff([DateDeliveredToClient], today(),day)>15 && datediff([DateImported],today(),day) <=90 && datediff([DateImported],today(),day) >=0 , [Qty],0)