S
Scott
I have tried to used the IIF then statement to do this but too many nests
have forced me to rethink. Is there another function I should look at for
this problem?
I have two tables. The first table dictates which field to grab from the
other table.
The gist of it:
If Waterfall![Allocate Y or N] = "N" then 0 else
If Waterfall![Alloc Metric] = "PIF" then [YTD Metrics at Subchannel
Level]!PIF else
If Waterfall![Alloc Metric] = "EP" then [YTD Metrics at Subchannel
Level]!EP else
If Waterfall![Alloc Metric] = "NB" then [YTD Metrics at Subchannel
Level]!NB else
If Waterfall![Alloc Metric] = "ASO" then [YTD Metrics at Subchannel
Level]!ASO else [YTD Metrics at Subchannel Level]!PIF
This is what I have built:
Subchannel Metric: Sum(IIf(IIf(Waterfall![Allocate Y or
N]="N",0,IIf(Waterfall![Alloc Metric Subchannel] Like "PI*",[YTD Metrics at
Subchannel Level]!SumOfPIF,IIf(Waterfall![Alloc Metric Subchannel] Like
"N*",[YTD Metrics at Subchannel Level]!SumOfNB,IIf(Waterfall![Alloc Metric
Subchannel] Like "E*",[YTD Metrics at Subchannel
Level]!SumOfEP,IIf(Waterfall![Alloc Metric Subchannel] Like "AS*",[YTD
Metrics at Subchannel Level]!SumOfASO,[Metrics Outfile]!PIF))))) Is
Null,0,IIf(Waterfall![Allocate Y or N]="N",0,IIf(Waterfall![Alloc Metric
Subchannel] Like "PI*",[YTD Metrics at Subchannel
Level]!SumOfPIF,IIf(Waterfall![Alloc Metric Subchannel] Like "N*",[YTD
Metrics at Subchannel Level]!SumOfNB,IIf(Waterfall![Alloc Metric Subchannel]
Like "E*",[YTD Metrics at Subchannel Level]!SumOfEP,IIf(Waterfall![Alloc
Metric Subchannel] Like "AS*",[YTD Metrics at Subchannel Level]!SumOfASO,[YTD
Metrics at Subchannel Level]!SumOfPIF)))))))
have forced me to rethink. Is there another function I should look at for
this problem?
I have two tables. The first table dictates which field to grab from the
other table.
The gist of it:
If Waterfall![Allocate Y or N] = "N" then 0 else
If Waterfall![Alloc Metric] = "PIF" then [YTD Metrics at Subchannel
Level]!PIF else
If Waterfall![Alloc Metric] = "EP" then [YTD Metrics at Subchannel
Level]!EP else
If Waterfall![Alloc Metric] = "NB" then [YTD Metrics at Subchannel
Level]!NB else
If Waterfall![Alloc Metric] = "ASO" then [YTD Metrics at Subchannel
Level]!ASO else [YTD Metrics at Subchannel Level]!PIF
This is what I have built:
Subchannel Metric: Sum(IIf(IIf(Waterfall![Allocate Y or
N]="N",0,IIf(Waterfall![Alloc Metric Subchannel] Like "PI*",[YTD Metrics at
Subchannel Level]!SumOfPIF,IIf(Waterfall![Alloc Metric Subchannel] Like
"N*",[YTD Metrics at Subchannel Level]!SumOfNB,IIf(Waterfall![Alloc Metric
Subchannel] Like "E*",[YTD Metrics at Subchannel
Level]!SumOfEP,IIf(Waterfall![Alloc Metric Subchannel] Like "AS*",[YTD
Metrics at Subchannel Level]!SumOfASO,[Metrics Outfile]!PIF))))) Is
Null,0,IIf(Waterfall![Allocate Y or N]="N",0,IIf(Waterfall![Alloc Metric
Subchannel] Like "PI*",[YTD Metrics at Subchannel
Level]!SumOfPIF,IIf(Waterfall![Alloc Metric Subchannel] Like "N*",[YTD
Metrics at Subchannel Level]!SumOfNB,IIf(Waterfall![Alloc Metric Subchannel]
Like "E*",[YTD Metrics at Subchannel Level]!SumOfEP,IIf(Waterfall![Alloc
Metric Subchannel] Like "AS*",[YTD Metrics at Subchannel Level]!SumOfASO,[YTD
Metrics at Subchannel Level]!SumOfPIF)))))))