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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
rcandeo
Creator III
Creator III

Set Analysis Doubt

I need to calculate the sum of my sales quantity since january to the actual month(-1).

In above expression I have the result to the actual month-1:

sum( {$<Month = {$(#=Only(Month)-1)}>} Quantity_Item)

I´ve tried the next expression but i´ve got the sum of the actual month + actual month(-1):

sum( {$<Month < {$(#=Only(Month)-1)}>} Quantity_Item)

How I´ve got the sum of all months till actual month (-1)?

1 Solution

Accepted Solutions
Not applicable

Try this:

=sum( {$<Month = {">0<$(#=Month(Now()))"}>} Quantity_Item)


View solution in original post

2 Replies
rcandeo
Creator III
Creator III
Author

I am almost there. Using the expression above, I've got the number I need for this month, but I need to use (month) instead of 6.

sum( {$<Month = {">0<6"}>} Quantity_Item)

Anyone can help me?

Not applicable

Try this:

=sum( {$<Month = {">0<$(#=Month(Now()))"}>} Quantity_Item)