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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lian96022
Frequent Visitor

FORMAT and IF Statement

I have a Column that formats another Column with a date into "mmm-yyyy". However, if the cell is empty I would like it would place the text "Open" in the field. Currently I have Column = FORMAT(Sheet1[Closed],"mmm-yyyy")

 

Any suggestions...

1 ACCEPTED SOLUTION
JIGAR
Resolver IV
Resolver IV

@lian96022 

 

You can create a new column using this formula.

 

NewDateColumn = if(ISBLANK(Sheet2[ENDTIME]),"Open",FORMAT(Sheet2[ENDTIME],"mmm-yyyy"))
 
Hope this helps !!
 
Please mark it as accepted if the solution was appropriate.
 
Thanks

View solution in original post

2 REPLIES 2
JIGAR
Resolver IV
Resolver IV

@lian96022 

 

You can create a new column using this formula.

 

NewDateColumn = if(ISBLANK(Sheet2[ENDTIME]),"Open",FORMAT(Sheet2[ENDTIME],"mmm-yyyy"))
 
Hope this helps !!
 
Please mark it as accepted if the solution was appropriate.
 
Thanks

Thanks! that worked.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.