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
Justas4478
Post Prodigy
Post Prodigy

Format to include text string

Hello I have tried FORMAT dax function and it solve some of the problem I had. And I noticed that it should be able to include text string as text in the formating in additional to the date formating that it can do. I did try to do it but it doesnt seem to work. Anyone know what I am writing incorrect?

 Date formating.PNG

I want the ABCD text string to apear as a text string in the card below infront of the date 30 Aug. in the dax documentation it tells to use this. 

("ABC")Display the string inside the double quotation marks (" ").

https://docs.microsoft.com/en-us/dax/format-function-dax 

Thank you.

1 ACCEPTED SOLUTION
Justas4478
Post Prodigy
Post Prodigy

Found solution. There might be better way to write it but it works.  

FORMAT(FIRSTDATE('Date'[Date]),("\w\\\e"" ""dd mmm"))  
Just need to add \ before every letter you want to display as text.

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Justas4478
Post Prodigy
Post Prodigy

Found solution. There might be better way to write it but it works.  

FORMAT(FIRSTDATE('Date'[Date]),("\w\\\e"" ""dd mmm"))  
Just need to add \ before every letter you want to display as text.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.