Hi,
I'm trying to calculate the total amount of the calls durations. I managed already to get sum of every call, and I get quite pretty result, for example:
2 days 3:43:23.
What I want to get, is to present the result in form:
51:43:23.
The way, I get the first result is:
CALCULATE;
CREATE MEMBER CURRENTCUBE.[Measures].[Test]
AS [MEASURES].[Call Dur],
FORMAT_STRING = IIF ([MEASURES].[Call Dur] < 1, 'hh:mm:ss',
'"' + cstr(int([MEASURES].[Call Dur])) + 'days "hh:mm:ss'),
NON_EMPTY_BEHAVIOR = { [Call Dur] },
VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Fact Call Entry' ;
I was trying using cint(hh) or cint('hh') inside the cstr expression, but this ends up with an error.
Does anybody has any idea, how to do this?
Thanks for any ideas.
I'm trying to calculate the total amount of the calls durations. I managed already to get sum of every call, and I get quite pretty result, for example:
2 days 3:43:23.
What I want to get, is to present the result in form:
51:43:23.
The way, I get the first result is:
CALCULATE;
CREATE MEMBER CURRENTCUBE.[Measures].[Test]
AS [MEASURES].[Call Dur],
FORMAT_STRING = IIF ([MEASURES].[Call Dur] < 1, 'hh:mm:ss',
'"' + cstr(int([MEASURES].[Call Dur])) + 'days "hh:mm:ss'),
NON_EMPTY_BEHAVIOR = { [Call Dur] },
VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Fact Call Entry' ;
I was trying using cint(hh) or cint('hh') inside the cstr expression, but this ends up with an error.
Does anybody has any idea, how to do this?
Thanks for any ideas.