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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
vanderson009
Creator III
Creator III

Data Foemate

I have two fields in table, Metrics and Values, Data look like image that i have uploaded. I have created one more column as formate. metrics which are in red colour having number values, metrics which are in yellow colour having Time values and metrics which are in green colour having days values.

Metrics which are in yellow colour having Time values but it actual in number format and i want to convert it into time format as hh:mm:ss.


Image.JPG

Please help me how can i change number format into time.


Thanks,

Villyee.

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If the Values is 73 then what should it look like in Time format?


talk is cheap, supply exceeds demand
Kushal_Chawda

Time value in number is in second or in minute?

If it is in Seconds then try below

=if(Format='Time' ,num(Floor($(vSec)/3600),'00')&':'&num(floor(Mod($(vSec),3600)/60),'00')&':'&Mod(Mod($(vSec),3600),60),Value)


replace $(vSec) by Value

MarcoWedel

Hi,

maybe something like this?

QlikCommunity_Thread_210003_Pic1.JPG

table1:

LOAD Metrics,

    Pick(Match(Formate,'Number','Time','Days'),Values,Interval(Values/24/60,'hh:mm:ss'),Dual(Values&' d',Values)) as Values

Inline [

Metrics,Values,Formate

AAAA,23,Number

GGGG,73,Time

LLLL,54,Days

];

(assuming your time values are minutes as you did not specify)

hope this helps

regards

Marco