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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
weakneee
Frequent Visitor

NEGATIVES HOUR

Guys, good afternoon! I would like to ask for your help with a question I am having. I am working with a table that has hours, and there is a negative hour that is giving me a different value than the one I am looking for. I will leave the images below with the examples and expressions I am using. The name "b", in minutes, has to return "-13", as others are doing, however, it returns "47" which is not consistent. Could anyone help me with this? I appreciate your attention!

 

And I did another test and it only returns the decimal "78", which doesn't make any sense to me, because in the table the decimal of "b" is "22"

 

weakneee_2-1709241088925.pngweakneee_3-1709241105894.pngweakneee_4-1709241118325.png

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @weakneee ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1709263376384.png

2.Create the new column.

 

test hour = 'Time'[hour] &":"& FORMAT('Time'[minute], "#00")

 

3.Create Drag the column into the visual.

vjiewumsft_1-1709263406967.png

4.The result is shown below.

vjiewumsft_2-1709263414805.png

Best Regards,

Wsidomw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

 

 

lbendlin
Super User
Super User

you need to do number math as DAX doesn't know durations.  I would also recommend you follow the standard convention where the integers are days and the fractions are, well, fractions of days.

 

What are you planning to test with these numbers?  The average?

 

lbendlin_2-1709260896191.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.