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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
siddrow
Helper III
Helper III

Help with converting excel formula to Power BI

Hi

 

I'm after some help to convert the below excel formula so I can create a custom column in my Power BI query

 

 

 =IFS(
    AND(ISNUMBER([@[Date Completed]]),ISBLANK([@Status])), "Missing status",
    [@Status] <> "completed", "",
    ISBLANK([@[Date Completed]]), "Missing completed date",
    AND(ISNUMBER([@[Date Completed]]),[@[Date Completed]]<=[@[Due Date]]), "Completed on time",
    TRUE, "Completed late"
)

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @siddrow 

Thanks for reaching out to us.

You can try this measure

Measure = 
SWITCH(TRUE(),
MIN('Table'[Status])=BLANK(),"Missing status",
MIN('Table'[Status])<>"completed","",
MIN('Table'[Date Completed])=BLANK(),"Missing completed date",
MIN('Table'[Date Completed])<=MIN('Table'[Due Date]),"Completed on time",
"Completed late"
)

vxiaotang_0-1655191411895.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @siddrow 

Thanks for reaching out to us.

You can try this measure

Measure = 
SWITCH(TRUE(),
MIN('Table'[Status])=BLANK(),"Missing status",
MIN('Table'[Status])<>"completed","",
MIN('Table'[Date Completed])=BLANK(),"Missing completed date",
MIN('Table'[Date Completed])<=MIN('Table'[Due Date]),"Completed on time",
"Completed late"
)

vxiaotang_0-1655191411895.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@siddrow , can you share sample data and expected results

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

Hi

 

Please see below. 

 

Due DateDate CompletedStatusComment

1/01/20221/01/2022CompletedCompleted on time
1/01/202231/12/2021CompletedCompleted on time
1/01/2022 CompletedMissing completed date
1/01/20222/02/2022CompletedCompleted late
1/01/20223/03/2022 Missing status
1/01/202231/12/2021Blabla 
1/01/2022   

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.