# QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save \$300 before February 6: REGISTER NOW!
cancel
Showing results for
Did you mean:  Contributor II

## Problem using set analysis with alternate states

Hi,

I use the following expression to calculate all incomming pallets that we received before the selected date.

=sum({\$<%Date = {"<\$(=min({\$} %Date))"}, Year=, Quarter=, Month=, Week= >}IN)

This is working perfectly, but now want to integrate this graph into a different report and therefore I have to use an alternate state.

But after this the formula doesn't seem to work anymore.  Who can tell me what I'm doing wrong?

My new formule after alternate state (=StateB) :

=sum({StateB<%Date = {"<StateB(=min({StateB} %Date))"}, Year=, Quarter=, Month=, Week= >}IN)

My result is always 0.

1 Solution

Accepted Solutions  MVP

Try this

=Sum({StateB<%Date = {"<\$(=Min({StateB} %Date))"}, Year=, Quarter=, Month=, Week= >}IN)   