lprabhu1107
Board Regular
- Joined
- Mar 10, 2011
- Messages
- 106
Dear All,
I have following data
[TABLE="width: 96"]
<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>[TR]
[TD="class: xl64, width: 64, bgcolor: transparent"]Origin[/TD]
[TD="class: xl64, width: 64, bgcolor: transparent"]Destin[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]BOM[/TD]
[TD="class: xl63, bgcolor: transparent"]DXB[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]DEL[/TD]
[TD="class: xl63, bgcolor: transparent"]SIN[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]HYD[/TD]
[TD="class: xl63, bgcolor: transparent"]LHE[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]DXB[/TD]
[TD="class: xl63, bgcolor: transparent"]BOM[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]SIN[/TD]
[TD="class: xl63, bgcolor: transparent"]DEL[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]LHR[/TD]
[TD="class: xl63, bgcolor: transparent"]HYD[/TD]
[/TR]
</TBODY>[/TABLE]
In column C i have used a formula to derive "true origin" in Excel 2010 as follows=if(or(a2={"bom","del","hyd"}),a2,b2).
Now how do i replicate the same formula in Powerpivot as it does not support{} operator?
I have following data
[TABLE="width: 96"]
<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>[TR]
[TD="class: xl64, width: 64, bgcolor: transparent"]Origin[/TD]
[TD="class: xl64, width: 64, bgcolor: transparent"]Destin[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]BOM[/TD]
[TD="class: xl63, bgcolor: transparent"]DXB[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]DEL[/TD]
[TD="class: xl63, bgcolor: transparent"]SIN[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]HYD[/TD]
[TD="class: xl63, bgcolor: transparent"]LHE[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]DXB[/TD]
[TD="class: xl63, bgcolor: transparent"]BOM[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]SIN[/TD]
[TD="class: xl63, bgcolor: transparent"]DEL[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]LHR[/TD]
[TD="class: xl63, bgcolor: transparent"]HYD[/TD]
[/TR]
</TBODY>[/TABLE]
In column C i have used a formula to derive "true origin" in Excel 2010 as follows=if(or(a2={"bom","del","hyd"}),a2,b2).
Now how do i replicate the same formula in Powerpivot as it does not support{} operator?