Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello.
I have a question about the constraint on sums.
These query give me a result in SQL.
select sum(sales) from test where belegtyp='AB' and geschaeftsjahr=kdatum_geschaeftsjahr
What must it look like in QLIK? I always get 0.
Sum(TOTAL{<BELEGTYP={'AB'},GESCHAEFTSJAHR={"KDATUM_GESCHAEFTSJAHR"}>}SALES)
Thanks for your help.
Try with this,
Sum({<BELEGTYP={'AB'},GESCHAEFTSJAHR={'KDATUM_GESCHAEFTSJAHR'}>}SALES)
Hi,
I tried this, but both provide 0
If possible can you share the qlik file?
May be you want kdatum_geschaeftsjahr to be in lower case
Sum({<BELEGTYP = {'AB'}, GESCHAEFTSJAHR ={"kdatum_geschaeftsjahr"}>} SALES)
result is 0.
table see pic
Try this
Sum({<BELEGTYP = {'AB'}>} If(GESCHAEFTSJAHR = KDATUM_GESCHAEFTSJAHR, SALES))
Thank you - is working 🙂
Nice Weekend !!!!
Super 🙂