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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
joannerw
Helper I
Helper I

Change text if another column contains a date or is not blank

This is an example of a data set I have which I need to change the Status of "Outstanding" to "Partially Complete" if there is a date in the Start Date column. I've highlighted the rows that this would apply to.

 

joannerw_1-1661740564031.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@joannerw , A new column in DAX

 

= If([Status] ="Outstanding" && not(isblank([Start Date])) , "Partially Complete", [Status]) 

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

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @joannerw 
If you are seeking a power query solution, then

1.png2.png

= Table.AddColumn(#"Changed Type", "Custom", each if [Finsih Date] = null and [Status] = "Outstanding" then "Partially Complete" else [Status])

 

Thank you @tamerj1 . I had trouble getting this to work for me as I'm fairly new to Power BI and wasn't sure how to apply it bit I found amitchandak's solution worked for me. Thank you for taking the time to assist.

@joannerw 

I also prefer dax. It's easier 😅 you can download the sample file, open the query editor and the see the steps. 

amitchandak
Super User
Super User

@joannerw , A new column in DAX

 

= If([Status] ="Outstanding" && not(isblank([Start Date])) , "Partially Complete", [Status]) 

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

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.

Top Solution Authors