Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I must calculate stock on two given dates. Set analysis are
Sum({1<Date={"<=$(vFirstDate)"}>}Quantity)
Sum({1<Date={"<=$(vSecondDate)"}>}Quantity)
Both results are always same despite different dates.
Any ideas?
TIA
How about this?
Sum({1<Date={"<=$(=vFirstDate)"}>}Quantity)
Sum({1<Date={"<=$(=vSecondDate)"}>}Quantity)
or
Sum({1<Date={"<=$(=$(vFirstDate))"}>}Quantity)
Sum({1<Date={"<=$(=$(vSecondDate))"}>}Quantity)
Can you define variables? Ane can you try from text object with two variables and see how values / Date seems
Variables are
LetFirstDate = Today();
Let SecondDate = Today();
Variables in a text box are in numeric format
When you say two variables given Today() then what is the use to make of two set analysis.
Variables in a text box are in numeric format
May be change to Date(Today()) -- It will DD/MM/YYYY Format in qlikview
Try this ,working fine for me .
=sum({$<Date={"$(vLastDate)"}>}Stock)
=sum({$<Date={"$(vFirstDate)"}>}Stock)
Try this
Sum({1<Date={"$(='<=' & $(vFirstDate) & '<=' & $(vSecondDate))"}>}Quantity)
That didn't help
Thx anyway
I can't use $ qualifier, must be 1 (all)
Returns zero values and results must be in two separate columns
So then tell me your business logic to give solution. In fact, your set operator is not that much understand