Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, why do i miss the two amounts of Orderno 2 in the second table?
The problem is that your if statement doesn't aggregate. So for any OrderNo with more than one record it can't determine which sum(Amount) it should use. Sum(200) or sum(120).
What you probably want is the other way around: sum(if(PartGroup='PartB' and left(PartNo,1)=3,Amount)).
You can rewrite that to a set analysis expression:
sum({<PartGroup={'PartB'},PartNo={"=left(PartNo,1)=3"}>} Amount)
The problem is that your if statement doesn't aggregate. So for any OrderNo with more than one record it can't determine which sum(Amount) it should use. Sum(200) or sum(120).
What you probably want is the other way around: sum(if(PartGroup='PartB' and left(PartNo,1)=3,Amount)).
You can rewrite that to a set analysis expression:
sum({<PartGroup={'PartB'},PartNo={"=left(PartNo,1)=3"}>} Amount)
Hi, perfect. Thanks! Zach.