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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
jlhy
Regular Visitor

Hour range on DirectQuery PBI

Hi experts,

 

I have been trying to research around on how to perform a data transformation to my "time" field from fact table.

There have been many forums talking about it, eg performing DAX but in my specific scenario, I am using a DirectQuery approach to perform a transformation but it kept saying that this kind of change is not supported in DirectQuery.

 

Eg, I have timings like 11:43:00 am, 12:10:00 pm, 12:11:00pm.

I would like to have it class by 1100 - 1200, 1200 - 1300

 

If I can only use DirectQuery method instead of import, how can I achieve this?

Sorry if this has been asked before but I just can't find one yet. Appreciate if anyone could guide me to the right path.. thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jlhy , Either you need to create a timetable or bucket in your source database and use that (Join to this table)

or create time table in import mode

example of power bi import mode. you can join it with time column of direct query table too

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jlhy , Either you need to create a timetable or bucket in your source database and use that (Join to this table)

or create time table in import mode

example of power bi import mode. you can join it with time column of direct query table too

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.