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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
po
Post Prodigy
Post Prodigy

Dataflows - format object as time with format HH:MM

Hi,

 

New to dataflows and have changed column to be of type Time which means when use dataflow in a dataset shows as HH:MM:SS

 

How can we set the time format on a column in power query (dataflow) to be of format HH:MM so that anybody consuming this column in a dataset does not need to format n the datasest itself?

 

Also in datasets we can change the display of a table to have several sub-folders so we can group the columns in individual sub-folders.

 

Is it possible for a table in dataflows to have sub-folders and how can we best achieve this in power query/dataflows?

 

Thanks

2 REPLIES 2
jennratten
Super User
Super User

Hello - you can change the appearance of the time in the dataflow by tranforming like this (:

= Table.AddColumn(#"Previous Step", "HHmm", each DateTime.ToText([#"Date - Copy"], "HH:mm"), type time)

jennratten_1-1653662358800.png

 

'Grouping columns into subfolders' - I think you are referring to creating hierarchies.  This cannot be done in Power Query. The closest thing would be to have a dimension table that includes the hierarchies and then relate that table to the fact table.  You would still have to create the hierarchies in the data model though.

 

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

Hi,

 

Thanks for reply.

 

Do you need to create a separate time column?

 

e.g. if just wanted to have date_created itself formatted as HH:MM is this possible?

 

Not meaning hierarchies as such, just the display folder part which get when create dat amodel in power bi desktop.

 

Rtaher than have to do that each time user uses that dataflow, woudl rather have just liked to set in the dataflow itself.  screenshot below of what do in ower bi desktop for this.

 

scrseenshot_270522.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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