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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Clint
Helper V
Helper V

Mixing date and text in a measure

Hello,

 

I've a request to show "N/A" when a project doesn't have a value for the field GLIA1Complete (which is a date field).  I'd prefer to do this with a measure like:

Blank Approval (NA) =
IF(ISBLANK(
MAXA('Projects'[GLIA1Complete])),"NA",
MAXA('Projects'[GLIA1Complete])
)
The problem is, when there is a date value for that field (list of projects filtered by slicer), it returns a numeric string instead of the date.  I'm not sure how to conver this result to the proper date.  
Any insight is appreciated.
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

Blank Approval (NA) = IF(ISBLANK(MAXA('Projects'[GLIA1Complete])),"NA",FORMAT(MAXA('Projects'[GLIA1Complete]),"dd/mm/yyyy"))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

Blank Approval (NA) = IF(ISBLANK(MAXA('Projects'[GLIA1Complete])),"NA",FORMAT(MAXA('Projects'[GLIA1Complete]),"dd/mm/yyyy"))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

Yes, perfectly.  thank you.  Have not used format much so this was a good learning experience.  Thank you!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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