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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors