Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I'm trying to make a simple Sum function, which should be dependent on two "IF" clauses, but for some reason I can't make it work...
The function below should take the sum of [Sales Lines - Net Sales Amount], but only for the lines, which doesn't have either status None from table Sales Line - A or status Cancelled from table Sales Line - B
sum(if([Sales Lines - A] <> 'None' OR [Sales Lines - B] <> 'Cancelled', [Sales Lines - Net Sales Amount]
))
Any ideas?
I also tried to put this data into my script (since I'll be using this variable several times), but I was unsuccesful (Read: Not skilled enough 😉 )
Looking forward to hear from you
HI
Try like this
= Sum({<[Sales Lines - A] -={'None'}, [Sales Lines - B] -= {'Cancelled'}> }[Sales Lines - Net Sales Amount])
Hope that helps
HI
Try like this
= Sum({<[Sales Lines - A] -={'None'}, [Sales Lines - B] -= {'Cancelled'}> }[Sales Lines - Net Sales Amount])
Hope that helps
Thank you Mayil
That did exactly what I was looking for.
I didn't know the sum function could be used the way you just did, thanks.