Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
shinney
Helper I
Helper I

Grabbing data with API, unable to convert datetime column to a date

Hello,

I'm trying to build a timeline chart based on count of tickets vs. date. We are recording the dates of when our report tickets come in on a datetime basis. 

First step would be to convert the datetime column to a date. However, we I did this on PowerBI, it simply just hid the time components; PowerBI was still not rolling-up my dates. Upon further inspection, I found out it was because the column type was still a datetime. When I tried to change this in M-query, it just gave me an "Error" for every record in the column. 

 

I tried making a second table that summed up the # of tickets per day, but I had difficulties joining the new table, and thus, I had issues with getting filters to work visuals.

 

Easiest fix would be to change the datetime to date, but keep running into that "Error" road-block.

 

Any suggestions on what to do?

 

Thanks!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @shinney 

You can add a custom column to contain only date values from the original datetime column. Just like below.

= Date.From([Old DateTime column])

042302.jpg

This date column is able to be changed into Date type. You can remove the old datetime column and use this new date column later.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @shinney 

You can add a custom column to contain only date values from the original datetime column. Just like below.

= Date.From([Old DateTime column])

042302.jpg

This date column is able to be changed into Date type. You can remove the old datetime column and use this new date column later.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors