Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ashis
Creator III
Creator III

How to show second in chart

Hello ,

I have two time column and I am calculating second using the following syntax, in the bar chart.

=Interval(End_Time - Start_Time,'ss')

I am getting the proper time in second in the chart in numeric format, now I want to print second text in the chart such as

30 sec , instead of 30 .

in the number tab if I change format setting from expression default to interval and put ss second , I did not get the result.

Could you please help me how to get it.

Thank you,

Ashis

34 Replies
prieper
Master II
Master II

=Interval(End_Time - Start_Time,'ss') & ' seconds'

Anil_Babu_Samineni

Is this works?

=Interval(End_Time - Start_Time,'ss') & 'sec'

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ashis
Creator III
Creator III
Author

Thank you for your reply, in expression append does not work.

ashis
Creator III
Creator III
Author

Thank you for your reply, in expression append does not work.

Anil_Babu_Samineni

Why Not?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
antoniotiman
Master III
Master III

Hi Ashis,

try like this

Replace(Interval(End_Time-Start_Time,'ss #ec'),'#','s')

=Replace(Interval('14:34:20','ss #ec'),'#','s')

Regards,

Antonio

ashis
Creator III
Creator III
Author

I am using bar chart , and when I put this syntax, I do not get any result.

ashis
Creator III
Creator III
Author

It is not working in bar chart.

tresesco
MVP
MVP

For bar chart, try like:

=Dual( Interval(End_Time - Start_Time,'ss') & 'sec'  , Interval(End_Time - Start_Time,'ss') )