Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
priyav24
Creator II
Creator II

RE:Issue with Selection Criteria??

Hello Everybody,

                            I have an issue with the selections,There is an calendar object in which the user needs to select the fromdate and todate which is working fine.But issue is when the user selects an account name ,the Previous selections is getting deselected..

Thanks in Advance ,

Priya

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It first checks if there the sum of VoucherAmount is not zero. Perhaps count({<VoucherAmount={'*'}>} VoucherAmount) would be better since there could be transactions that when summed up have zero as result. The idea is first to make sure that there are transactions for that account in the selected period before calculating the opening balance. That's needed because that calculation overrides the GlDate selections.


talk is cheap, supply exceeds demand

View solution in original post

7 Replies
Siva_Sankar
Master II
Master II

couldnt able to open your attached file.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If a new selection contradicts with existing selections then the existing selections are cleared. So if the account name doesn't have any data for the fromdate and todate then those two fields are cleared.


talk is cheap, supply exceeds demand
priyav24
Creator II
Creator II
Author

Thanks @Gysbert,

                              so what can be done if i dont want show the account name in the straight table which is not in range of date..

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps changing the OpeningBalance expression to something like this works:

=if(sum(VoucherAmount),

num(Sum({$<GlDate={"<$(=Date(FromDate,'DD/MM/YYYY'))"}>} VoucherAmount+OpeningAmount), 'BD #,##0;(BD #,##0)')

)


talk is cheap, supply exceeds demand
Not applicable

Hi Priya,

  The reason behind that is the data of account name is not having the those selection

Regards,

Santhosh G

priyav24
Creator II
Creator II
Author

Thanks @Gysbert,

                              Could you Please Explain How it works

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It first checks if there the sum of VoucherAmount is not zero. Perhaps count({<VoucherAmount={'*'}>} VoucherAmount) would be better since there could be transactions that when summed up have zero as result. The idea is first to make sure that there are transactions for that account in the selected period before calculating the opening balance. That's needed because that calculation overrides the GlDate selections.


talk is cheap, supply exceeds demand