Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
above mentioned set analysis statement is not working. in above example. VselectDate is an input box variable where in user can enter the date as per his/her wish. Please also not that date structure is same i.e. DD-MM-YYYY in variable as well as FinanceRelease field.
If i write
=Sum({<[Fiscal Year]= {$(vcurrentyear)}, FinanceRelease = {'=$(VselectDate)'}>} [Capex Item Gross Value])
it works perfectly fine. but when i enter <= it is not working. Could any one pls. help me
-Rahul
Hi
Its hard to diagnose the problem without a sample, but I would debug the expression like this:
Remember that variable names are case sensitive, and just because the calendar box is displaying the date correctly does not necessarily mean that the variable is correctly formatted, so you might need a Date() format command in the second clause.
HTH
Jonathan
how to attach qvw / qvd files?
how to attach qvw / qvd files?
When you click on reply.
Use advance editor, Then you will have option to attach.
Regards
ASHFAQ
Hi Jonathan,
Possibly this is only possible in qlik community, people who are answering are taking more pain/giving more effort than the ones who are being helped. ![]()
![]()
True I agree with tresesco
am also in pain Tresesco... i have attached qvd/qvw files for reference ... pls. check.
Dear Rahul, Please do not read anything that hurt you from my earlier post. It was simply a light hearted expression and nothing personal.
Coming back to your question: As per your sample: here
Your FinaceRelease is a text, hence the issue. Convert this into proper date in the script using date#() like:
Load
Date#(FinaceRelease, 'DD-MM-YYYY') as FinaceRelease
Then it should work.
You can try:
=Sum({$<[[Fiscal Year]]={'$(vcurrentyear)'},FinanceRelease={"<=$(VselectDate)"}>}[[Capex Item Gross Value]])
or
=Sum({<[[Fiscal Year]]={'$(vcurrentyear)'},FinanceRelease={"<=$(VselectDate)"}>}[[Capex Item Gross Value]])
you may use the below tools also:
Hi,
Have a look at attached file.
Regards
ASHFAQ