Forum Discussion
Anonymous
2 years agoNot applicable
Help splitting this column
I need to split this by dd/mm/yyyy (UK date format). I'm in need of an DAX formula that'll extract the date portion (02022024) of the Source Name column and then return the result in the ...
- 2 years ago
Hi Anonymous,
Can you please try this:
Date = VAR DatePosition = LEN ( Files[FileName] ) - LEN ( "ddmmyyyy" ) - LEN ( ".xlsx" ) + 1 VAR DateString = MID ( Files[FileName], DatePosition, 8 ) RETURN FORMAT ( DATE ( RIGHT ( DateString, 4 ), MID ( DateString, 3, 2 ), LEFT ( DateString, 2 ) ), "dd/mm/yyyy" )Upvote and accept as a solution if it helps!
govindarajan_d
2 years agoSuper User
Hi Anonymous ,
Did the solution work?
Anonymous
2 years agoNot applicable
Hi, sorry for the very late response. I'm going to check now and get back to you.