cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
fyrworx
Frequent Visitor

Data type format in Query editor

Hi,

 

I know that we can change the format of the data type in under the modelling tab in power bi.

 

I was wondering if we could change the format in the query editor. This will save me a lot of time.

 

This is the example:

= Table.TransformColumnTypes(#"Removed Columns2",{{"TnA_Start Time", type time}, {"TnA_Start Break", type time}, {"TnA_Stop Break", type time}, {"TnA_End Time", type time}})

 

I am able to get the time with the the format HH: MM: SS AM/PM but I want to be able to format it so that it just shows HH:MM?

 

Is this possible and how do I put it in the DAX query?

 

Thank you!

1 ACCEPTED SOLUTION

There is the number format and the display format. The query editor only sets the number format. Display formatting is immature in Power bi. You could potentially use a text pattern representing HHMM if you wanted 



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2

There is the number format and the display format. The query editor only sets the number format. Display formatting is immature in Power bi. You could potentially use a text pattern representing HHMM if you wanted 



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Thanks, that is exactly what I need though!

 

It would help so much in terms of creating models based on previous work.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors