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

Display sum value based on current month

I have a data set where the fields are netaddresses, MonthAddress, YearAddress.  I would like to have a text object show the sum of the netaddresses column but only show values for the current month.  I have another list box that already is limiting the data by year but I want the text object to the sum of the current month using the year selected.  How would I do that?

2 Replies
aveeeeeee7en
Specialist III
Specialist III

Hi

For current Month you need to use Month(Today()) and Year(Today()) in your expression.

Try this:

='Current Month '&'('&Month(Today())&' - '&Year(Today())&')'&' Amount :'&chr(32)&chr(32)& Sum({<New_Month={'$(=Month(Today()))'},New_Year={'$(=Year(Today()))'}>}Amount)

Also, see the expression for understanding.

Regards

Aviral Nag

Not applicable
Author

Thanks for the reply.  I already have a list box to select the year, however I would only like the have the text object sum the netaddress values for the same current month.  Is that possible as I don't want to have to include the year in the expression?