Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
PFA,
[ASN Qty]-ApplyMap('Mapping', Material & Plant,if([Rwip Qty])<0 or ISNULL([Rwip Qty]),0) ) as Final_ASN_Qty
Or change the mapping load table as
Mapping:
Mapping LOAD plant_Key,
if([Rwip Qty]<0 or IsNull([Rwip Qty]),0,[Rwip Qty]) as [Rwip Qty] Resident RWIP_1;
Please check enclosed file...
Hi Manish,
In this case Mapping function only it takes 1st value comparing with duplicate values
EX: ASN-RWIP=ASN_QTY_sample
10-20=-10
10-30=-20
10-80=-70

But, here consider only with -70
Dear Sunil,
Mapping Load Table only take two columns/dimensions and also there should be no duplication in this table.
Otherwise, AppyMap function will take only the First Value.
Also, due to duplication in Mapping Load Table, ApplyMap will create duplicated rows...
Hi Manish,
One more problem..
In my Plant_key last value 0606ABCA017
ASN QTY- Rwip Qty= Final_ASN_Qty
but here ASN_QTY value Null value(Null value should should be Zero her)
then 0-14=-14
NULL() values should be Zero in All columns
Replace with this in your script...
IF(NOT ISNULL([ASN Qty]),if([ASN Qty]-ApplyMap('Mapping', Material & Plant)<0,0,[ASN Qty]-ApplyMap('Mapping', Material & Plant,0)),0) as Final_ASN_Qty
Hi Manish,
How to calculate group by Plant_Key wise
sum(ASN_QTY -Sum(RWip_Qty) = Eff ASN
Eff_ASN i want to show group wise based on Plant_Key
PFA..
please anyone can help me...........