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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MNGoodyear
Frequent Visitor

Data and Time manipulation

I have a data set as a direct query from a SQL database.

 

This includes a Date time field as shown below: 

MNGoodyear_0-1597138483424.png

 

I would like to use the value as just a date field in in a graph, I have tried changing the format to just date but the x axis still displays the time

 

I also want to group the date time by 15 minute groupings for another graph but unsure how to achieve.

 

Any help would be appreciated

 

3 REPLIES 3
amitchandak
Super User
Super User

@MNGoodyear , Try a time table

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

I followed your instructions and have created a time table, this allows me to allocate a time slot to production. I can then graph this, however what this doesn't show me is the points of zero production.

For example if i plot the below data it will not show 0 for the 30 minute slots between 12:30 and 1:30 and i would like to sum every time slot between 7am and 7 pm and display zero where no production: 

 

date_timecodeQtyWL_BarcodeSlotHour
11/08/2020 12:19Apple110-2912
11/08/2020 12:19Apple120-2912
11/08/2020 12:19Apple130-2912
11/08/2020 12:19Apple140-2912
11/08/2020 12:20Apple150-2912
11/08/2020 12:20Apple160-2912
11/08/2020 12:23Apple170-2912
11/08/2020 12:23Apple180-2912
11/08/2020 12:28Apple190-2912
11/08/2020 12:28Apple1100-2912
11/08/2020 13:31Apple11130-5913
      

 

Thanks

MattAllington
Community Champion
Community Champion

You should create a view in SQL that strips out the time



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.