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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
NicoHa
Regular Visitor

Divide time by whole number

hey there,


I want a measure that divides time by whole number, and get the result as time.

The first column (data type time) should be divided by the second colum (data type whole number).

The result should be date type 'time'.

 

NicoHa_0-1733300396859.png

thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

hello,

create this new column.

newColumn =

VAR seconds = 
HOUR(Table[Aantal uren mw + omk]) * 60 * 60 + MINUTE(Table[Aantal uren mw + omk])* 60 + SECOND(Table[Aantal uren mw + omk])

VAR divided = seconds / Table[Aantal stuks]

RETURN
TIME(0, 0, divided)



View solution in original post

2 REPLIES 2
NicoHa
Regular Visitor

That works, thank you

Anonymous
Not applicable

hello,

create this new column.

newColumn =

VAR seconds = 
HOUR(Table[Aantal uren mw + omk]) * 60 * 60 + MINUTE(Table[Aantal uren mw + omk])* 60 + SECOND(Table[Aantal uren mw + omk])

VAR divided = seconds / Table[Aantal stuks]

RETURN
TIME(0, 0, divided)



Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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