Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am having a month YYYY field in my table and it is a pure text data type field.
Example :- Jan 2021, Feb 2021, Mar 2021 etc.,
I need to create a calculated column to convert these data to 01/01/2021, 01/02/2021, 01/03/2021, etc.,
How can we do it ? Please help.
Solved! Go to Solution.
have you tried to change the date type to date in PQ?
or change the date type in column tools
Proud to be a Super User!
have you tried to change the date type to date in PQ?
or change the date type in column tools
Proud to be a Super User!
Give this a try.
Month Date =
VAR _Year = INT ( RIGHT ( 'Table'[Month Field], 4) )
VAR _Month =
SWITCH (
LEFT('Table'[Month Field],3),
"Jan",1,"Feb",2,"Mar",3,"Apr",4,"May",5,"Jun",6,"Jul",7,"Aug",8,"Sep",9,"Oct",10,"Nov",11,"Dec",12
)
RETURN DATE ( _Year, _Month, 1 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
105 | |
88 | |
74 | |
66 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |