Forum Discussion

galbatrox9's avatar
galbatrox9
Helper I
6 years ago
Solved

Power Query - Error while rounding off time

Hi Team,

 

I wanted to round off my time column into the nearest hour in Power Query and it worked for most of the data, but about 20% of the data has errors now and I am not able to understand why. 

Here's a snapshot and this is the code I used : Time.From(Number.Round(Number.From([IST Time])*24)/24)

 

Can anyone help me understand how to fix this? Or suggest a better code to use.

  • Anonymous's avatar
    Anonymous
    6 years ago

    Well you can use the DAX to create a caluclated column on your original table or recreate the table as a visual and add a column for the measure. Should make it fairly easy to determine if there were any errors.

8 Replies