Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ysalvi43
Contributor
Contributor

Date Subtraction

Hello Team,

I want to subtract  two date, but I am able to execute that in BI Table, but while downloading data the subtraction of date is automatically getting converted in to "###########:" format is there any way where we can get ####### in to proper format as soon as we download data from BI

Thanks and regards 

Labels (7)
6 Replies
justISO
Specialist
Specialist

Hi, is this "###########" means some kind of number or this is format you see, just a string from hashtags? Can you provide one sample of what you see? Are you see these "###########" in excel? Qlik?

ysalvi43
Contributor
Contributor
Author

I am able to view ######## on excel on Qlik it is duration 

 

justISO
Specialist
Specialist

On excel ##### means, that cell is to small for value, but it is here. Easiest way to make it fit is to change column width or double click between columns letters, A,B,C... when mouse cursor become <-|-> :

justISO_0-1667825517234.png

ysalvi43
Contributor
Contributor
Author

It is not possible to get same duration which is shown on BI?? after subtraction

justISO
Specialist
Specialist

What why I asked to provide at least one sample of your duration you see in BI, and what you get. Because, if you have duration in, for example, 0.5451215 format, you can change this number format to 'duration' format pattern h:mm:ss and see 13:04:58 (function time(0.5451215, 'h:mm:ss') ).

vinieme12
Champion III
Champion III

use the interval() function

 

https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/Formatt...

 

example

=interval(date1-date2,'DD')   << returns difference in days

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.