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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Summing FROM-TO

Hi everybody,

I'm facing a problem where i don't find a way to resolve it.

I'd like to do a sum with two conditions.

What I'd like to do (on my designer) is sum an import from Data_A to Date_B.

Something like:

SUM( {<Date >= $(vFrom) and Date <= $(vTo)  "}>}  Import)

IIs there a way to do that?

Thank you so much in advance.

Giampiero

1 Solution

Accepted Solutions
jvitantonio
Specialist III
Specialist III

Hi, try this:

sum({$<Date={">=$(vFrom)},Date={"<=$(vTo)} >} Import)

View solution in original post

4 Replies
jvitantonio
Specialist III
Specialist III

Hi, try this:

sum({$<Date={">=$(vFrom)},Date={"<=$(vTo)} >} Import)

Not applicable
Author

Thank you so much.

It works perfectly.

I was on the right way but my expression was wrong

sum({<date= {"=date>= $(vFrom) "},date= {"=date<= $(vTo) "}>} Importo)

Again, THANK YOU so much

Giampiero

christian77
Partner - Specialist
Partner - Specialist

I don't think so. You can call a field only once in a set.

I use single quotes.

Try this one...

sum({$<Date={'>=$(vFrom)<=$(vTo)'} >} Import)

Not applicable
Author

Hi,

Thank you for reply.

Your solution works fine as well as the other one.

Thank you

Giampiero