Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
khadeer
Specialist
Specialist

Set Analysis problem?

Hi All,

I have date field with 2005 to 2012, and amount field with some values. Suppose if i selected for year wise and month wise i am getting correct values.

But if i want data from starting onwards. for example, if i selected year 2010 and month june ... i want the total value from 2005 to selected date that means (2010 june).

Regards,

Khadeer

11 Replies
Not applicable

HI

TRY IT

SUM(TOTAL( $<YEAR AND MONTH>AMOUNT))

Not applicable

Hi khadeer,

Can you share your file, please?

-Anju

khadeer
Specialist
Specialist
Author

Hi Vishwa,,   Its not working.....    Hi Anju,  PFA

Not applicable

Hi,

Can you also please attach your .qvw file?

-Anju

khadeer
Specialist
Specialist
Author

Just i given one example i cant share my qvw.. file. If i selected 2012 i have to show total amount. If i selected 2011 i have to show until 2011....  if i selected 2011 n any month i ave to show amount from starting date to selected date. I hope its clear.   regards,  Khadeer

Gysbert_Wassenaar

Try: sum({<Date_Field={"<=$(=max(Date_Field))"}>} Amount)


talk is cheap, supply exceeds demand
khadeer
Specialist
Specialist
Author

i have tried this already. But its not working.  Its giving total value just like sum(Amount)

Not applicable

Hi,

I think we have to use something like this

=sum({<Date={">=$(=Date)<=$(=max(TOTAL Date))"}>} Amount)

but, this again needs some modification =$(=Date) gives current date and =max(TOTAL Date) gives the last date in the list. I tried this, but I am still getting values for only that particular date.For some reason, it is not summing it.

-Anju

khadeer
Specialist
Specialist
Author

Hi Anju,  Not working. Still its pending.