Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of Revenue for a Year

I'm working on creating an expression that returns only the revenue for the year selected in the listbox. Any suggestion?

1 Solution

Accepted Solutions
mdmukramali
Specialist III
Specialist III

Dear,

perform this expression

=sum( {$<Year = {$(=Only(Year))}>} Revenue )

hope this one will help you

thanks,

Mukram.

View solution in original post

7 Replies
mdmukramali
Specialist III
Specialist III

Dear,

perform this expression

=sum( {$<Year = {$(=Only(Year))}>} Revenue )

hope this one will help you

thanks,

Mukram.

Not applicable
Author

I typed it in and it is not showing any data. Could you maybe break down the syntax for me? Thanks for helping!

mdmukramali
Specialist III
Specialist III

Dear,

Select Any year from listbox then it will show the Sum(Revenue) for that particular Year..

expression is  

=sum( {<Year={$(=Only(Year))}>}  Revenue)

thanks,

Mukram

Not applicable
Author

I have tried that to no result. Any clue as to what I might be doing wrong?

mdmukramali
Specialist III
Specialist III

Dear,

check the Spell and Year filed name same as Year.

else

can u post your applcation?

Thanks,

Mukram

Not applicable
Author

I figured out what I was doing wrong. I left out the second =    Thanks so much!!

Not applicable
Author

If I wanted to do the same thing for a month how would I do that?