How to locate => value in different column of Pivot table.
I've tried a great deal of methods to make this work and I'm simply running out of ideas at this point. I've searched this site until my fingers are sore and still no luck.
I have a pivot table that has two different expressions in it. I'm trying to write a third expression that will take one value from a Expression A plus the current total of Expression B and then count the columns between it and the first matching or larger value in Expression B that will occur some weeks later. Both expressions are rolling totals across a weekly Dimension using Rangesum and Before with ColumnNo. The gaps in weeks will be more or less random, so I have to be able to more or less search for the value or do a count. The biggest issue I'm running into is that it's very difficult to compare the current amount of Expression A plus Expression B and then find the nearest analog to it in X columns to the right.
I've tried to nest 53 weeks of If(After(Column(2), but it won't all fit in the expression box. If someone can give me a good example of how to count the weeks between (Expression A + Expression B) to the later/larger version of Expression B, I would really appreciate it. Given the way this data is from very disparate sources with gaps in the weeks etc, the interval match command doesn't seem like a viable option.
I'm taking 52 weeks and checking every column to the right of it in the 52 weeks across pivot table with a nested if statement. I found a way around the nesting limit as you can see at the bottom. I'm just looking for a way to achieve this same thing without creating such a drain on system resources.
Column 3 is [Compound Demand]
Column 2 is [RNP]
Column 1 contains the above formula.
I can't paste data unfortunately. That would violate company policy.