
Originally Posted by
IFA Stamford
All,
Can someone please look at my code and see what might be the error in my logic?
Product Level 1: IIf([Monthly Client Detail 2010]![Fact Type Desc]="Writedown L4" Or [Monthly Client Detail 2010]![Fact Type Desc]="Total Exceptions Items L4","Not Defined",IIf([Monthly Client Detail 2010]![Global Banking Product L3]="Cross Sell","Cross Sell",IIf(Left([Monthly Client Detail 2010]![Mid Level],3) In ("DCM","Syn"),"DCM",IIf(Right([Monthly Client Detail 2010]![MT Pack Lo Level 4],3)="DCM","DCM",IIf([Monthly Client Detail 2010]![Mid Level]="Other","Markets",IIf([Monthly Client Detail 2010]![Mid Level]="Equities","Equities Origination",[Monthly Client Detail 2010]![Mid Level]))))))
The problem is in the grouping in red. When the Make Table creates the query, it isn't taking into account the records that have those fields. It is categorizing them as any one of the other items based on the Mid Level Column.
Can you help me understand what I am doing incorrectly?
Thanks,