Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Working out time remaining (Modulo)

$
0
0
So I have a simple cube, a measure of total time (in seconds), to support better usage in reports I wanted to add a total remaining minutes & seconds as separate calculations so that these can be turned into HH:MM:SS as total duration.For example:Seconds - 3139628Total Hours - 872 (working in cube)Remaining minutes - 07 (need to calc)Remaining seconds - 08 (need to calc)These calcs would then be used to create a value in a report of 872:07:08 for total time. I can get this working in excel using the MOD function in excel

Viewing all articles
Browse latest Browse all 1341

Trending Articles