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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Grouping by field text

Hello

Can you add the minutes of the same code? In the table I have Codes column (text field) and Minutes column (also text field)

Minutes = FORMAT(DATEDIFF('mCRM times'[fecha_inicial],'mCRM times'[fecha_final],MINUTE) /60 /24,"hh:mm")
apenaranda_0-1688387785164.png

Thank you.

8 REPLIES 8
Syndicate_Admin
Administrator
Administrator

ok

Finally I have passed everything to seconds and from there I have calculated the hours, minutes and seconds.

Thanks a lot.

Syndicate_Admin
Administrator
Administrator

Wow, how strange that nothing can be done about it because I think it is quite normal to make use of the total elapsed time, which is greater than 24 hours of course.

Or to tell you the hours instead of minutes... After you can always spend minutes I understand..

You can always keep your data in hours or minutes

serpiva64_1-1688463725301.png

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

Syndicate_Admin
Administrator
Administrator

Yes, it is indeed more than one day, it should leave 70h approx

If one day passes, does it no longer add you correctly?

No, it adds correctly but in your format the max of hours are 24 (a day).

see examples 1 and 2:

serpiva64_0-1688460657179.png

 

Syndicate_Admin
Administrator
Administrator

Hello

I'm testing the measure and it seems to work in part, if you look at the capture, in the second table where there is interlocutor and minutes, only adding the last rows already add more than 3h but in the table on the left, only adds 1h and 3m

apenaranda_0-1688458255504.png

The formula for Minutes in the second table is

Minutes = FORMAT(DATEDIFF('mCRM times'[fecha_inicial],'mCRM times'[fecha_final],MINUTE) /60/24,"hh:mm")
Do you know what may be happening?

Maybe the sum of 1361 is more then 1 day.  

serpiva64
Super User
Super User

Hi,

you can use a measure

Measure1 = FORMAT(SUMX('Table', DATEDIFF('Table'[Initial], 'Table'[Final], MINUTE)/60/24), "hh:mm")
serpiva64_0-1688391240747.png

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.