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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RYU209
Helper III
Helper III

Convert Work Time from Decimal to HH:MM:SS while preserving summarization capabilities (Paginated)

Hello,

Currently I have employee work time data in a decimal format - e.g. 2.57 hours worked.

Is there a way to convert this to a HH:MM:SS format while also preserving the ability to sum the values up? I have created formulas to convert the time to HH:MM:SS but it involves concatenating text strings and cannot be summed up when used in a matrix in a paginated report. 

For instance, I have a matrix in Power BI Report Builder that shows the following when collapsed:

RYU209_0-1685727392199.png

When expanded, some of the data looks like this:

RYU209_1-1685727419562.png

 

Notice how the collapsed version is showing 04:13:48 (first entry in the expanded version) and not the actual sum of all the time. 

Is there a way to accomplish what I need here? 

3 REPLIES 3
Greg_Deckler
Super User
Super User

@RYU209 Hmm... If this was Power BI Desktop the answer is custom format strings. Not sure if there is anything equivalent in paginated. Not sure if this solution is an option but see this thread: datetime - Formatting Seconds into Days, Hours, Minutes, Seconds for SQL Report Builder Y-Axis Label...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler ,

Thanks for the response - I will see if the link you sent is applicable for my purposes. 

I'm actually using a Power BI Dataset as the source for my Paginated report and many of the fields in the matrix are Power BI measures I created in Desktop so maybe custom format strings could work? Do you mind going into more detail? 

@RYU209 Sure, here's the detail: https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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