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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I
Helper I

CONCATENATE works fine with only numeric but as soon as I concatenate symbol it is spinning wheels

Hi everyone,

What I am trying to do is- I have dates like 20230517 I want to display it like 2023-05-17


I have created the following measure


_Referral_date_formatted =
var year_ = LEFT(a,4)
var month_ = RIGHT(LEFT(a,6),2)
var day_ = RIGHT(a,2)
It is taking forever.
but when I try to return this
return CONCATENATE( CONCATENATE(year_ ,month_),day_) -- this works fine
I have kept the Data type of the measure as Text. any guidance here as to why adding the symbol is taking forever...

Date = 
var d = SELECTEDVALUE('Table'[DateText])
return Left(d,4) & "-" & mid(d,5,2) & "-" & RIGHT(d,2)

View solution in original post

Community Support
Community Support

Hi @_Regina ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 


Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Super User
Super User

Table = ADDCOLUMNS(DATATABLE("DateText",STRING,{{"20230517"}}),"Date",DATE(Left([DateText],4),mid([DateText],5,2),RIGHT([DateText],2)))


Use FORMAT([date],"yyyy-MM-dd")  for the UI.

Still does not work, I have to do it via measure. and then I am creating a table visual where I am pulling in all the recirds so that users can see the relevant data, it is just that dates like 20230715 is not user friendly, I just want it to display differently in the table visual, The limitation is that I cannot create a new column.





Date = 
var d = SELECTEDVALUE('Table'[DateText])
return Left(d,4) & "-" & mid(d,5,2) & "-" & RIGHT(d,2)

Helpful resources


Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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