Calculated column formula in a row context

Gordonik

Board Regular
Joined
Jan 30, 2014
Messages
127
Hi

My simplistic data model looks like this:
[TABLE="width: 252"]
<colgroup><col span="2" width="64" style="width: 48pt;"><col width="108" style="width: 81pt;"><col width="16" style="width: 12pt;"></colgroup><tbody>[TR]
[TD="width: 64"]Table.1[/TD]
[/TR]
[TR]
[TD]Spread[/TD]
[TD]Product[/TD]
[TD]Sales Channel[/TD]
[TD]..[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]x[/TD]
[TD]CB[/TD]
[TD]..[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]y[/TD]
[TD]CB[/TD]
[TD]…[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]x[/TD]
[TD]GFR[/TD]
[TD]..[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]y[/TD]
[TD]GFR[/TD]
[TD]..

[/TD]
[/TR]
</tbody>[/TABLE]
I need a calculated column with Spread Mapping, which should look like this:

2gslw79.png



->There are more columns in data model.
-> Spread for GFR is wrong so it must be mapped to be able to compare with CB
I guess there should be calculated column formula to calculate Spread Mapping.
Any idea how to do it?
I have tried this: (not working as I expected)


=CALCULATE(sum([Spread]);FILTER(ALL('Table.1'[Sales Channel]);Table.1[Sales Channel]="CB"))


Spread Mapping = Spread for CB
but for GFR we are looking for adequate values in CB (means: all conditions the same, except Sales Channel)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,226,693
Messages
6,192,468
Members
453,726
Latest member
JoeH57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top