Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I have brought in an excel spread sheet as a data source. I have a date column, which is formated to short date in the excel sheet, but when i try change this column's type in the query editor from number to date, then all the dates in the column shows error. Please can someone assist.
Hi Thanks for advise, unfortunately it did not work. Here is a snapshot of my problems. I have imported an excel spreadsheet to power BI, and power bi converts the durations into dates and I have tried chaning the type both in excel and power bi, but nothing works.
Is there something im missing?
You have several problems that I can see:
Good luck.
Hi @GabrielK ,
Try using local:
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Hello @GabrielK,
One approach is to create a new column for the date conversion:
ConvertedDate =
VAR DateAsText = FORMAT([YourDateColumn], "0000-00-00")
RETURN
DATE(
VALUE(MID(DateAsText, 1, 4)),
VALUE(MID(DateAsText, 6, 2)),
VALUE(MID(DateAsText, 9, 2))
)
Alternatively, if your date column is stored as a number:
ConvertedDate =
DATE(1899, 12, 30) + [YourDateColumn]
Hope this helps - Alternatively, lets connect and I can guide you through the process - Yes, its FREE 🙂
(https://topmate.io/sahirmaharaj/649292)
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
15 | |
14 | |
8 | |
6 | |
6 |