Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
If I tried to change the if statement into set analysis is give different output
Sum(if([Posting Date] >=FromDate and [Posting Date] <= ToDate,Opn_Pur_TXN))
output-538582
sum({<[Posting Date]={'>=$(=FromDate)'},[Posting Date]={'<=$(=ToDate)'}>}Opn_Pur_TXN)
output-1386261
but I remove
[Posting Date]={'<=$(=ToDate)'
this expression output of If statement is same as qlikview I.e. 538582
what's wrong??
Try this instead and see if it matches the output from if or not
Sum({<[Posting Date]={">=$(=FromDate)<=$(=ToDate)"}>}Opn_Pur_TXN)
Try this instead and see if it matches the output from if or not
Sum({<[Posting Date]={">=$(=FromDate)<=$(=ToDate)"}>}Opn_Pur_TXN)
Hi,
Try below
sum({<[Posting Date]={">=$(FromDate)"},[Posting Date]={"<=$(ToDate)"}>}Opn_Pur_TXN)
Regards
Maybe you should put if statement before sum statement.
Try this:
if([Posting Date] >=FromDate and [Posting Date] <= ToDate, Sum(Opn_Pur_TXN))
when u remove [Posting Date]={'<=$(=ToDate)' it gives same output
possible reason can be todate would be the max(date) of the application.in this case result set will be correct.
If any other scenario give more details about dates
Hi Shweta,
try:
=Sum({< PostingDate = {'>=$(=FromDate)<=$(=ToDate)'} >} Opn_Pur_TXN)
HTH Andy
thanks sunindia its helps
Awesome
Wasn't sure if it is going to give you the correct result or not, but I am glad it worked.
Sunny