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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

OUTSTANDING Date due of Delivery date vs Receive Order Date

Hi Team

 

I had a question .

Details Below

outstanding.png

any suggestion of DAX

 

Thanks

Shybs

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for ur respond

I tried ur DAX , but i got an issue for calculating month .

 

so i tried to test with my own DAX

KPI-Delivery = if(ISBLANK(PREE[Rcv Order]),"RCV ORDER BLANK",
IF(ISBLANK(PREE[Rcv Order]) && ISBLANK(PREE[Last Delivery for POD]),"CHECK", IF(ISBLANK(PREE[Last Delivery for POD]),"NOT DELIVERED YET",
if(PREE[Last Delivery for POD].[Month]>PREE[Rcv Order].[Month],"OUTSTANDING","ONTIME"))))

 

Regards

syaiful

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Try something like that. if both are in same table, create a new column

Switch(true (),
isblank([rcdOrder]), "Received Order blank",
isblank([rcdOrder]) && isblank([delivery]), "Check",
[rcdOrder]<today() && isblank([delivery]) ,"Outstanding",
[rcdOrder]>=today() && isblank([delivery]) ,"Not deilvered yet",
[rcdOrder]<today() && ([delivery]) <<today(),"OK"
,"Outstanding"
)

 

If both are in different table

then enclose the with firstnonblank() like firstnonblank([rcdOrder],blank()) and create a measure. But in display row conext would be important

Refer:

https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Differ...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for ur respond

I tried ur DAX , but i got an issue for calculating month .

 

so i tried to test with my own DAX

KPI-Delivery = if(ISBLANK(PREE[Rcv Order]),"RCV ORDER BLANK",
IF(ISBLANK(PREE[Rcv Order]) && ISBLANK(PREE[Last Delivery for POD]),"CHECK", IF(ISBLANK(PREE[Last Delivery for POD]),"NOT DELIVERED YET",
if(PREE[Last Delivery for POD].[Month]>PREE[Rcv Order].[Month],"OUTSTANDING","ONTIME"))))

 

Regards

syaiful

 

Anonymous
Not applicable

both are different table

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.