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
Borjaveiga
Regular Visitor

Problems witha time format measure

Good afternoon to all,

 

Maybe somene could help me out with this problem I am finding.

I created a measure to show time as such 1:02:00 using this DAX

Hours  = FORMAT(time(0,sum('Descargas fichajes'[registered_time_mins]),0),"hh:nn:ss")

the column is a hole number and when I use it in a visual I get this error message 
Borjaveiga_0-1707504275495.png


It's in sapnish but basicaly says that either one part of the TIME function has an error or the result is too big or too small 
it makes no sense since we are talking about 150hours by row if I diplay it in a table with the employee Id as first column in the visual object

Thanks in advanced



8 REPLIES 8
Borjaveiga
Regular Visitor

Hi @lbendlin Thanks for the interest, I have a column with time in minutes: registered_time_mins formated as wholenumber

I want to  perform a sum of those min, since is the time logged by each worker.

After reading in different places in the community, I realized that Format does not work when the sum is over 24h

I am lookin for a solution that allows me to see per each worker what is the number of hours worked, even perform agregations by department, also be able to calculate averages, but also to format that minutes calculation in a way that is comprehensible by users with a display similar to:

90hour 30min or 90:30:00 

 

second request: Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Dangar332
Super User
Super User

hi, @Borjaveiga 

replace your sum with min like below
just adjust table name 

Measure = 
FORMAT(TIME(0,min('Table'[registered_time_mins]),0),"HH:MM:SS")

Dangar332_0-1707551242050.png

 



Thanks for your quick answer, although that does not solve my problem, since that is a fact table and I need to sum all the minutes registred, its a fact table and I have several rows by Employee ID

 

hi, @Borjaveiga 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

the column that the meassure refers to is registered_time_mins and looks likes this:

 

registered_time_minsexpected_timeexpected_time_mins
9120168h10080
10260168h10080
10731168h10080
7500160h9600
7680168h10080
9600160h9600

Not clear how you get from the sample data to the expected result . Can you please explain?

 

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.