Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
i opened a table in power Query, the column is date data and comes in as a number field...
201805
201804
201803
when i convert to date it changes it to, 7/8/2452. Obviously wrong. What is the best practice to have PQ recognize this as a Date (year month) , what conversions, etc should i perform. thanks
in PQ, i seperated the text field into 2 separate columns, then rejoined them with a "/" between the 2 parts. I then converted to Date (it works). I then deleted the 2 seperated columns.
I was wondering if there is a more efficient way to do this in PQ
Solved! Go to Solution.
In reports tab use DAX: create a new column Date = FORMAT(Table1[Column1],"YYYY-MM")
Hi @ilcaa72,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
Best Regards,
Cherry
Hi @ilcaa72,
You could have a reference of this similar thread which use M query to convert YYYYMM to date type.
There are two solutions in that thread, you could choose one the more efficient.
Best Regards,
Cherry
In reports tab use DAX: create a new column Date = FORMAT(Table1[Column1],"YYYY-MM")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |