Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum if

Hello Guys,

I am having an issue with a variable which I am creating:

=Sum({<Date={'>=$(=Date(Max(Date)))<=$(=(Date(Max(Date)))'}>}if(ConvDuration>0,1,0))

Actually I need to get the total call of today whereby the conversation duration exceeded 0 seconds.

Thanks for your usual help.

Kind Regards,

Hasvine

3 Replies
PrashantSangle

Hi,

try like

Sum({<Date={'>=$(=Date(Max(Date)))<=$(=(Date(Max(Date)))'},ConvDuration={'>0'}>} 1)

Regards

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 🙂
danieloberbilli
Specialist II
Specialist II

the sum(1) might be the problem, try sth like

SET vVariable = '=Count({<ConvDuration={">0"}, Date={">=$(=Date(Max(Date)))<=$(=(Date(Max(Date)))"}>} CallID))';

Not applicable
Author

Hi Max,

I think in your code there is mistake happen can you check it once.

Ramya.