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.
Hi,
I have date column and the value of the column is : 201902 which is YYYYMM format. when I load the value in power bi, it shows that data type is shoowing as Text.
Now I have to create date from this and format should be MM/DD/YYYY.
Please suggest what to do now?
Solved! Go to Solution.
Hi @Anonymous
You can add custom column in query editor.
Please see the code below
=Date.FromText([YourColumn] & "01")
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can add custom column in query editor.
Please see the code below
=Date.FromText([YourColumn] & "01")
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
https://docs.microsoft.com/en-us/dax/datevalue-function-dax
The datevalue(DateColumn) should work here. It turns text based date into datetime values.
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 |
---|---|
114 | |
101 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |