Forum Discussion
Converting date summary from report
- 6 years ago
Hi warnera ,
We can use the following steps in Power Query Editor to meet your requirement.
1. Split column by "M".
2. We select the two columns at same time, then we select merge columns function.
3. At last we need to merge the columns by "/", and change the type to date.
The result like this,
If it does not meet your requirement, could you please show the exact expected result based on the table that we have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
warnera , In case you have like from 2019M1 to 2019M12
It can give date like
New Date =date(left([Month],4),month(right([Month],len([Month])-SEARCH("M", [Month],0,0) )),1)
ou might have adjust the month calc
amitchandak I tried your formula and got the following error. Also included a screenshot of my exact file.
Thanks for the help
ot this:
- amitchandak6 years agoSuper User
warnera , Try like
date((LEFT([summaryYM],4)+0),(right([summaryYM],LEN([summaryYM])-SEARCH("M",[summaryYM]))+0),1)