Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

formatting number of minutes

Hello

got a pivot table with Dimension = TPK and an expression which is as follows:

avg(aggr($(vDuration.AvgDuration.Current),TPK,JOB_ID))



in one of the cells I have the value of 138 (number of minutes)

in a text box if I write the following:

Interval#( Time#(138  ,'mm'),'hh:mm') then I get 2:18 displayed however if I write the below:

Interval#(

  Time#(

  avg(aggr($(vDuration.AvgDuration.Current),TPK,JOB_ID))

  ,'mm'),'hh:mm')

I get null on the chart

Please advise

I can walk on water when it freezes
4 Replies
sushil353
Master II
Master II

Hi,

Try to use number tab in chart property, there you can find interval selection to get the desired output.

HTH

Sushil

ali_hijazi
Partner - Master II
Partner - Master II
Author

I tried this but it didn't work as well it kept displaying 138

I can walk on water when it freezes
anbu1984
Master III
Master III

Can you post sample app

ali_hijazi
Partner - Master II
Partner - Master II
Author

it is because avg(aggr($(vDuration.AvgDuration.Current),TPK,JOB_ID)) returns decimals

suppose I have 122.75 then I get null but if I use floor it gives 2:02

I can walk on water when it freezes