Skip to content
Advertisement

Subtract one hour result

I am pulling live data from a db2 server, I am building a Power bi report that shows by time each transaction made. There is a time difference between our server location so the result is one hour ahead. I am trying to subtract one hour from HVTIME (TIME). I can create a custom measure in Power Bi to do this but I am unable to add it to an Axis.

I have tried different SQL statements with no luck.

The result I am looking for should be 10:04:53 under HVTIME (TIME).

enter image description here

Advertisement

Answer

Does this do what you want?

You may find this article useful for date/time stuff in DB2.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement