The ask for update month or add data to new month When update month 5 /*bi*/ delete FROM [Spirit_Reporting].[dbo].[RETC_TargetValue] where [Year]=2020 and [Month]=5 /*sd*/ delete FROM [RETCSD].[dbo].[RETC_TargetValue] where [Year]=2020 and [Month]=5 and then insert it again with new data or add new month First for bi Open conection on server bisvr Select database spirit reporting Focuse on the second two files ( 1-Sales KPI's Target Productivity - Start -May - Copy) Msl weighted customer msl weighted target % Coverage objective target weighted customer coverage objective msl weighted Target lE target lE Effective calles Effective call target (26)Coverage objective target presell customercovarge objective msl presell (27)Msl presell customermsl presell target (30)Amf+3 TargetID TargetDescription 2 3 4 5 Target DC & Target LE (Region, Branch, Channel, Item, Salesman) AMF1+ AMF2+ MSL Weighted Customers 6 7 8 CoverageObjectiveTarget Weighted Customers 26 27 30 CoverageObjectiveTarget Presell Customers Target LE (Region, Branch, Channel, Salesman) EffectiveCalls MSL Presell Customers AMF3+ Colu mn1 Col um n2 Kraft Done 2, Kraft Done 3, Kraft Done 4, Kraft Done 5, Kraft Done 6, Kraft Done 7, Kraft Done 8, Kraft Done 26, Kraft Done 27, Kraft Done 30, Database Like it Like it Like it msl weighted target % coverage objective msl weighted target lE Effective call target covarge objective msl presell msl presell target AMF3+ --insert into RETC_TargetValue (Targetid,salesmanid,targetvalue,year,month) values (3,'0000110605',147,2020,1) ( 1-SKU's Target Per Sales Rep-RETC -Start May- V1 - Copy)go to sheet 3ala Gebo V2 insert into RETC_TargetValue (Targetid,salesmanid,itemid,targetvalue,targetDC,year,month) values (2,'0000110605','10101221',8885.41879135899,202.587548442985,2020,1) second for SD Open conection on server sdsvr Select database RETCSD Focuse on the first two files ( 1-Sales KPI's Target Productivity - Subdistributor-Start-May - Copy) Msl weighted customer msl weighted target % Coverage objective target weighted customer coverage objective msl weighted Target lE target lE Effective calles Effective call target Coverage objective target presell customercovarge objective msl presell Msl presell customermsl presell target TargetID TargetDescription Like it 2 Target DC & Target LE (Region, Branch, Channel, Item, Salesman) 3 AMF1+ 4 AMF2+ 5 MSL Weighted Customers Like it Like it msl weighted target % coverage objective msl weighted 7 CoverageObjectiveTarget Weighted Customers Target LE (Region, Branch, Channel, Salesman) 8 EffectiveCalls 23 CoverageObjectiveTarget Presell Customers 24 MSL Presell Customers 25 AMF3+ 6 target lE Effective call target covarge objective msl presell msl presell target AMF3+ Database Col1 Col2 RETCSD Done 2, RETCSD Done 3, RETCSD Done 4, RETCSD Done 5, RETCSD Done 6, RETCSD Done 7, RETCSD Done 8, RETCSD Done 23, RETCSD Done 24, RETCSD Done 25, --insert into RETC_TargetValue (Targetid,salesmanid,targetvalue,year,month) values (3,'SD0263',147,2020,1) ( 1- SKU's Target Per Sales Rep - Subdistributor-Start -May (002)) go to may --insert into RETC_TargetValue (Targetid,salesmanid,itemid,targetvalue,targetDC,year,month) values (2,'SD0605','10101221',8885.41879135899,202.587548442985,2020,1) For bi exec [RETC_SP_UpdateLastMonthTargetsAfterUpdate] 2020,6 for sd exec RETC_Reports_ToImport..[RETC_SD_SP_UpdateLastMonthTargetsAfterUpdate] Clear format for all data Change with no percentage Maximize cell space 2020,6 For bi ALTER TABLE RETC_TargetDefinition ADD Targettype char(1); update RETC_TargetDefinition set Targettype ='D' where TargetID in (2,3,4,5,6,7,8,26,27,30,40) update RETC_TargetDefinition set Targettype ='N' where TargetID not in (2,3,4,5,6,7,8,26,27,30,40) for sd ALTER TABLE RETC_TargetDefinition ADD Targettype char(1); select * from [dbo].[RETC_TargetDefinition] update RETC_TargetDefinition set Targettype ='D' where TargetID in (2,3,4,5,6,7,8,23,24,25,40) update RETC_TargetDefinition set Targettype ='N' where TargetID not in (2,3,4,5,6,7,8,23,24,25,40)