Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Thijs_Qlik
Contributor II
Contributor II

Sum value if Date > today()

Hi all,

I am trying to make a syntax as shown below. I am trying to sum the ours that are planned in the future. So all the ours after today.

if(MAXIMALPRODUCTIONFINISHDATE > Today(), Sum([B_TOTAL_TIME_H:MM:SS]))

but it is not giving a value, any tips or tricks?

#KPI Chart

Labels (2)
1 Solution

Accepted Solutions
PrashantSangle

I missed the () at end of Today.

try below

Sum(if(floor(MAXIMALPRODUCTIONFINISHDATE )>Floor(Today()),B_TOTAL_TIME_H:MM:SS))

Regards

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
PrashantSangle

Hello

try

Sum(if(floor(MAXIMALPRODUCTIONFINISHDATE )>Floor(Today),B_TOTAL_TIME_H:MM:SS))

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Thijs_Qlik
Contributor II
Contributor II
Author

hi Prashant,

thx for your answer but it is giving me a wrong expression...

am i doing something wrong

PrashantSangle

I missed the () at end of Today.

try below

Sum(if(floor(MAXIMALPRODUCTIONFINISHDATE )>Floor(Today()),B_TOTAL_TIME_H:MM:SS))

Regards

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Thijs_Qlik
Contributor II
Contributor II
Author

thx a lot!! that worked for me!