Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have text date in query editor and want to convert to standard date, get error message when I try to convert using 'Data Type: Date/Time' and also when I use datefromtext function.
Solved! Go to Solution.
Create new columns like
startdate = mid(Table1[startdatetime],14,2) &"/"& mid(Table1[startdatetime],11,2) & "/" & right(Table1[startdatetime],4)
enddate = mid(Table1[enddatetime],14,2) &"/"& mid(Table1[enddatetime],11,2) & "/" & right(Table1[enddatetime],4)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Hi,
In the Query Editor, right click on each column individually and go to Split Column > By delimiter > comma. Remove the column with the time stamp.
Hope this helps.
Hi,
In the Query Editor, right click on each column individually and go to Split Column > By delimiter > comma. Remove the column with the time stamp.
Hope this helps.
Awesome thanks, both options worked, one for DAX and other for Query Editor. cheers!
You are welcome.
Create new columns like
startdate = mid(Table1[startdatetime],14,2) &"/"& mid(Table1[startdatetime],11,2) & "/" & right(Table1[startdatetime],4)
enddate = mid(Table1[enddatetime],14,2) &"/"& mid(Table1[enddatetime],11,2) & "/" & right(Table1[enddatetime],4)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
User | Count |
---|---|
97 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |