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.
I tried updating my table with 2017 dates to include 2018 dates and when I tried refreshing the table I get a type mismatch. In power bi the format is date but when I import into sql I used varchar which gave me a type mispatch. But I tried to change the import data type to date but it only comes through as datetime and powerbi says it cannot have multiple time stamps of the same thing 00:00:00 Does anyone have any suggestions for how to resolve this?
Solved! Go to Solution.
Thanks for responding @Anonymous
I did some more research and was able to do an alter table alter column in sql to change the value to date and then power bi brought it in perfectly. Thanks!
HI @shelbsassy,
What is the format you stored date value, can you share some example?
In my opinion, I'd like to suggest you use text format to stored these date, then use Date.FromText to convert format.
BTW, I don't think power bi will support analysis timestamps as date, if you use any specific timestamps to store date value, you need to convert timestamps to normal datetime before you change column type.
Regards,
XiIaoxin Sheng
Thanks for responding @Anonymous
I did some more research and was able to do an alter table alter column in sql to change the value to date and then power bi brought it in perfectly. Thanks!
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |