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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
SC07
New Member

Paginated Report Time Column Error

SC07_0-1746694443563.png

I have built a paginated report and all good. However when I export the data to excel the start_time column formats to ### and if I remove the - it changes to 23:58.51 which is not correct as should be 12:01:09. 

 

The cell in the report is formated as time (hh:mm:ss) Long Time. 

I have tried changing the time column to something else, but does not work either. 

Anyone had this issue before and know how to fix?

1 ACCEPTED SOLUTION
SolomonovAnton
Super User
Super User

The issue you're encountering with `start_time` exporting as ######### in Excel and showing values like 23:58:51 is likely due to a mismatch between the underlying data type and formatting in your Paginated Report and how Excel interprets negative or improperly parsed time values.

🛠 Root Cause

  • In Excel, time values are stored as fractions of a day since 12:00 AM. A negative value like -0.999201388888889 isn't a valid time and renders as ######## or shows an incorrect time like 23:58:51 if forced.
  • This suggests that start_time in your dataset may contain negative durations or is being misinterpreted as a numeric value instead of a time value.

Solution

To ensure proper export of time values from your Paginated Report to Excel:

  1. Ensure the source value is a valid DateTime or TimeSpan (not a calculated numeric value).
  2. In your Paginated Report (Report Builder or Visual Studio RDLC Designer):
    • Select the start_time text box.
    • Right-click → Text Box Properties → Number → Time → Set to hh:mm:ss tt.
    • In the expression, confirm you're using something like:
      =Format(Fields!start_time.Value, "HH:mm:ss")
      Or, if it's a string:
      =TimeValue(Fields!start_time.Value)
  3. Check your dataset to ensure it returns the time in a proper SQL datetime or time format (not a float or numeric).
  4. Ensure your dataset field is not returning negative values or incorrect data types. Example for SQL Server:
    SELECT CAST(start_time AS TIME) AS start_time FROM your_table

🧪 Test

Try previewing your report and exporting it to Excel after applying the above changes. Check if the time displays correctly.

📎 Related Resources

✔️ If my message helped solve your issue, please mark it as Resolved!

👍 If it was helpful, consider giving it a Kudos!

View solution in original post

1 REPLY 1
SolomonovAnton
Super User
Super User

The issue you're encountering with `start_time` exporting as ######### in Excel and showing values like 23:58:51 is likely due to a mismatch between the underlying data type and formatting in your Paginated Report and how Excel interprets negative or improperly parsed time values.

🛠 Root Cause

  • In Excel, time values are stored as fractions of a day since 12:00 AM. A negative value like -0.999201388888889 isn't a valid time and renders as ######## or shows an incorrect time like 23:58:51 if forced.
  • This suggests that start_time in your dataset may contain negative durations or is being misinterpreted as a numeric value instead of a time value.

Solution

To ensure proper export of time values from your Paginated Report to Excel:

  1. Ensure the source value is a valid DateTime or TimeSpan (not a calculated numeric value).
  2. In your Paginated Report (Report Builder or Visual Studio RDLC Designer):
    • Select the start_time text box.
    • Right-click → Text Box Properties → Number → Time → Set to hh:mm:ss tt.
    • In the expression, confirm you're using something like:
      =Format(Fields!start_time.Value, "HH:mm:ss")
      Or, if it's a string:
      =TimeValue(Fields!start_time.Value)
  3. Check your dataset to ensure it returns the time in a proper SQL datetime or time format (not a float or numeric).
  4. Ensure your dataset field is not returning negative values or incorrect data types. Example for SQL Server:
    SELECT CAST(start_time AS TIME) AS start_time FROM your_table

🧪 Test

Try previewing your report and exporting it to Excel after applying the above changes. Check if the time displays correctly.

📎 Related Resources

✔️ If my message helped solve your issue, please mark it as Resolved!

👍 If it was helpful, consider giving it a Kudos!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.