Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Aggr Over Certain Fields

Trying to Create a column (SalesOfFirstMonth) in a chart to pick Sales value of Month = 1 and show against all the clients for that Year. Need to do this on chart level and not in the script. Tried via creating a variable but it shows 105 in all rows.

  

ClientMonthYearSalesSalesOfFirstMonth
a12015105105
b2201595105
c3201580105
d4201595105
e52015100105
f6201590105
a120148585
b220149585
c320147985
d4201411085
e520149085
f620148085

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

This expression should do it:

=Sum({<Month = {1}>} TOTAL <Year> Sales)

Chart.PNG

Best,

Sunny

View solution in original post

4 Replies
sunny_talwar

This expression should do it:

=Sum({<Month = {1}>} TOTAL <Year> Sales)

Chart.PNG

Best,

Sunny

ziadm
Specialist
Specialist

use Min Function to select the 1st Month

Min(Month(Date))

anbu1984
Master III
Master III

What is the desired output?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this expression, if you always have 1 as the starting month

=Sum({<Month = {1}>} TOTAL <Year> Sales)

Regards,

Jagan.