Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I need your help about a set analysis expression.
I have to count the number of Lines higher than Invoice AND whose Invoice is not equal to 0.
To do that, I did this expression :
=Count({<Lines={"=Lines>Invoice"}*{"=Invoice<>0"}>}[Lines])
But the result does not seem very correct..
Do you have any idea to improve the expression ?
Thanks
This sort of set analysis gives right result only if the comparison field (here Lines) has unique values (i.e - a key field). Otherwise, try using if like: =Count( If(Lines>Invoice and Invoice<>0 ,[Lines]) )
=Count({<Lines={">=Invoice"}, Invoice={">=0"}>} Lines)
try this
=count(If((lines>invoice and invoice<>0),lines))
try:
Count({<Lines = p({<Lines = {'>=$(=Invoice)'}>}Lines)*p({<Invoice = {'>=$(=0)'}>}Lines) >}Lines
Some change
=Count({<Lines={ ' >Invoice ' }, Invoice = {">0"}>} Lines)
This sort of set analysis gives right result only if the comparison field (here Lines) has unique values (i.e - a key field). Otherwise, try using if like: =Count( If(Lines>Invoice and Invoice<>0 ,[Lines]) )
Thank you everyone for your response !