Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Friends,
It makes me a puzzle by this example case why I got different result in Qlikview by using "if" clause versus set analysis.
The first formula is using "if" clause, this is what I want.
sum
(if(transaction_date<=aggr(nodistinct maxstring(agency_contract_date),agent),amount
))
The second formula is using set analysis. The result is beyond my expectation, the result is different from the first formula.
Sum
({< transaction_date = {"=transaction_date<=aggr(nodistinct maxstring(agency_contract_date),agent)"} >} amount
)
Can somebody illustrate to me why the result is different? How can I achieve the same result by using set analysis?
Thanks!
See attached qvw for an explanation.
See attached qvw for an explanation.
I assigned a uniq_id to each and get the correct result.
Learnt a lot. Thanks so much~