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 community,
Would you please give me advice what is the best way to extract the date from this specific timespamp:
P2019Y3M11DT11H4M54S
I've tried to use MID function to exctract the parts and concatenate them by ".":
Date =
Solved! Go to Solution.
Hey,
I would do something like this:
DATE( VALUE(< something that returns the year >) ,VALUE(< something that returns the month >) ,VALUE(< something that returns the day >) )
Regards,
Tom
Thank you guys, now it works!
Hey,
I would do something like this:
DATE( VALUE(< something that returns the year >) ,VALUE(< something that returns the month >) ,VALUE(< something that returns the day >) )
Regards,
Tom
Hi Egor,
test:=date(mid("P2019Y3M11DT11H4M54S",find("P","P2019Y3M11DT11H4M54S")+1,4),mid("P2019Y3M11DT11H4M54S",find("M","P2019Y3M11DT11H4M54S")+1,2),mid("P2019Y3M11DT11H4M54S",find("Y","P2019Y3M11DT11H4M54S")+1,1))
Probably not the best way, but this works.
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
10 | |
7 |