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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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