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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis Date

Hi All,

I have an application with:

- orderID

- orderStatus (integer value)

- orderDate

- orderAmount

- ComparaisonDate (field not linked to the data model)

I need to calculate the sum of orderAmount where orderStatus has increased between a selected max(ComparaisonDate) and max(orderDate), and orderStatus is not null on both periods.

Regards,

Yacine

3 Replies
Not applicable
Author

is it possible on Qlikview?

chiru_thota
Specialist
Specialist

Hi,

It may be possible.you can try below approach.

You need to introduce one more new Counter column in for each OrderID to identify status increased or not when compared to previous date.This can be added in QV data model it self.

So that you can use that column in set analysis while calculating orderAmount

Thanks,

Chiru.

Not applicable
Author

Hi,

I started an expression but I think that I have a mistake somewhere. can you help to correct it pls:

=sum({<Date={"$(=date(max([CalendarComparison.Year Month])))"}, [orderStatus]={"=$(=only({1<Date={'$(=date(max([Year Month])))'}>} [orderStatus ]))"}>} [orderAmount])

Rgds