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 September 15. Request your voucher.
Hello,
Please advise how can I change the columns definition from text to date.
In the exist columns the values appears as Jan Feb... in text format and the years as 2017 2018 in text or decimel number format.
Thank you,
Alona
Hi @alona,
Assume sample data looks like below:
You can create a calculated column below:
Date = DATE('Table1'[Year],SWITCH([MONTH],"Jan",01,"Feb",02,"Mar",03,"Apr",04,"May",05,"Jun",06,"Jul",07,"Aug",08,"Sep",09,"Oct",10,"Nov",11,"Dec",12),1)
Best Regards,
Qiuyun Yu
Thank you very much. It was very helpful.
User | Count |
---|---|
71 | |
63 | |
60 | |
49 | |
26 |
User | Count |
---|---|
117 | |
75 | |
62 | |
55 | |
43 |