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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nirrobi
Helper V
Helper V

Export data to csv missing leading zero

Hi,

 

When I try to export data to csv from PBI Desktop with time column (HHMM format) the leading zero is missing.

For Example 0803 show as 803.

 

I tried to use

 

Move_Time = FORMAT( 'Status'[Time HHMM] , "0000" )

 

but it still missing the leading zero.

 

Can anyone assist please.

 

Nir.

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@nirrobi,

 

I have tested it on my local environment, I can get the same results as yours. It seems that excel change data type when loading your excel. 

 

In order to workaround this issue, you can create aempty excel and load csv file into this excel file.

Capture.PNGCapture1.PNGCapture2.PNGCapture4.PNG

 

Regards,

Charlie Liao

Thanks a lot!

The workaround work like a charm.

 

The problem is that I need this data to be used by end user (no PQ / M knowladge).

 

I "feel" that there is must be some kind of workaround that doesnt include PQ.

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