The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have an error with below sample data to convert a text column (Period) to a date format (Date period).
Period | Date period |
004.2021 | 01.04.2021 |
005.2021 | 01.05.2021 |
006.2021 | 01.06.2021 |
The Date Period I retrieved via following formula :
Date Period = CONCATENATE("01.";right('DataFile'[Period];7))
Solved! Go to Solution.
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
thanks Greg, it works! 🙂
User | Count |
---|---|
77 | |
77 | |
36 | |
30 | |
28 |
User | Count |
---|---|
106 | |
97 | |
55 | |
49 | |
46 |