03-10-2025
MJM11111
Calcite | Level 5
Member since
06-28-2023
- 14 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by MJM11111
Subject Views Posted 721 03-10-2025 06:43 AM 722 03-10-2025 06:42 AM 767 03-10-2025 03:41 AM 798 08-01-2024 07:42 AM 1065 12-19-2023 10:31 AM 1066 11-23-2023 08:37 AM 1310 10-26-2023 05:21 AM 1337 10-26-2023 04:45 AM 1907 09-16-2023 09:32 AM 1844 09-15-2023 10:17 AM -
Activity Feed for MJM11111
- Posted Re: Distinct Calculation on SAS Viya. 03-10-2025 06:43 AM
- Posted Re: Distinct Calculation on SAS Viya. 03-10-2025 06:42 AM
- Posted Distinct Calculation on SAS Viya. 03-10-2025 03:41 AM
- Posted K on SAS Programming. 08-01-2024 07:42 AM
- Posted Same account with debit and credits done. on SAS Programming. 12-19-2023 10:31 AM
- Posted Update rule with current month on SAS Visual Analytics. 11-23-2023 08:37 AM
- Posted Re: Sas Macro Help. on SAS Programming. 10-26-2023 05:21 AM
- Posted Sas Macro Help. on SAS Programming. 10-26-2023 04:45 AM
- Posted Calculations not pulling through correctly. on SAS Programming. 09-16-2023 09:32 AM
- Posted Please help with SAS code on SAS Programming. 09-15-2023 10:17 AM
- Posted Help with code on SAS Programming. 09-15-2023 09:35 AM
- Posted Re: Multiple Id number applying at different dealers. on SAS Programming. 08-30-2023 05:49 AM
- Tagged Re: Multiple Id number applying at different dealers. on SAS Programming. 08-30-2023 05:49 AM
- Posted Multiple Id number applying at different dealers. on SAS Programming. 08-30-2023 05:21 AM
- Posted only want 1 status to show on my output on SAS Programming. 06-28-2023 09:06 AM
03-10-2025
03:41 AM
Good day. I want to create a formula in SAS Visual Analytics, based on the entries as shown below, I want to only sum the 1st entry per Ref number. for example, in the below table we are only looking at Fraud type 4. Suspicious, currently the total rand value is 3 636 910.90 but it should be 1 818 455.45 if I should only calculate based on the 1st line entry. Fraud Type Fraud Documents Suspicious Avg Principle Debt 4. Suspicious 4.1.1 Suspicious 290 727.49 4. Suspicious 4.1.2 False Employer 290 727.49 4. Suspicious 4.1.2 False Employer 541 537.48 4. Suspicious 4.1.1 Suspicious 541 537.48 4. Suspicious 4.1.1 Suspicious 501 207.50 4. Suspicious 4.1.2 False Employer 501 207.50 4. Suspicious 4.1.2 False Employer 193 649.49 4. Suspicious 4.1.1 Suspicious 193 649.49 4. Suspicious 4.1.1 Suspicious 291 333.49 4. Suspicious 4.1.2 False Employer 291 333.49
... View more
12-19-2023
10:31 AM
Hi, I have a data set where there is incoming and outgoing transactions happening based on transaction codes. I want to use this data Set to see if I look at transaction codes 401,395,11 and 71 I know it's all credits and transaction codes 402, 911 and 394 it's all debit that went through on the account. I need to build an output where the account number had a debit done on the account and then that some account number went and did a credit (reversal) on the account. So I only want to see the account number if there was a debit done for an x amount and then if there was a reversal done for the same amount. Hope someone can help me.
... View more
11-23-2023
08:37 AM
Hi,
I have a rule in SAS VA , that reads data for the current month we are in. what i want to do is create a rule where i don't have to update the 202311 to 202312, the rule should automatically update to the current month we are in and update the figures. the rule that i am currently using is as follow, but you will notice that month book is 202311- so that means i would have to manually update next month to 202312, what parameters would i use instead of 202311?
IF ( 'Month Booked (yyyy/mm)'n In (202311) ) RETURN 1 ELSE 0
... View more
10-26-2023
05:21 AM
I can do that, but the problem is , i want to automate this piece of work, so wont it be better to just have the macro running to read the data whole time ?
... View more
10-26-2023
04:45 AM
Hi , please will someone be able to assist me - i have the following code (Code will follow) . i need this code to read 12 months of data the data sets are as follow: how will i create a Macro to read the code with all these data sets. werkwm.martaccount202210 werkwm.martaccount202211 werkwm.martaccount202212 werkwm.martaccount202301 werkwm.martaccount202302 werkwm.martaccount202303 werkwm.martaccount202304 werkwm.martaccount202305 werkwm.martaccount202306 werkwm.martaccount202307 werkwm.martaccount202308 werkwm.martaccount- these data sets are for the prev months as its not labled- but will update at month end with 202309 Werkwm.martvtraxapplications202210 Werkwm.martvtraxapplications202211 Werkwm.martvtraxapplications202212 Werkwm.martvtraxapplications202301 Werkwm.martvtraxapplications202302 Werkwm.martvtraxapplications202303 Werkwm.martvtraxapplications202304 Werkwm.martvtraxapplications202305 Werkwm.martvtraxapplications202306 Werkwm.martvtraxapplications202307 Werkwm.martvtraxapplications202308 Werkwm.martvtraxapplications-these data sets are for the prev months as its not labled- but will update at month end with 202309 WerkWM.MARTVTRAXDEALERS202210 WerkWM.MARTVTRAXDEALERS202211 WerkWM.MARTVTRAXDEALERS202212 WerkWM.MARTVTRAXDEALERS202301 WerkWM.MARTVTRAXDEALERS202302 WerkWM.MARTVTRAXDEALERS202303 WerkWM.MARTVTRAXDEALERS202304 WerkWM.MARTVTRAXDEALERS202305 WerkWM.MARTVTRAXDEALERS202306 WerkWM.MARTVTRAXDEALERS202307 WerkWM.MARTVTRAXDEALERS202308 WerkWM.MARTVTRAXDEALERS- these data sets are for the prev months as its not labled- but will update at month end with 202309 The code: data FloorplanA (keep = keyloaddate Dealref ArrDays Prindebt Term RateOffset DealerCode DealerName KeyIBIS ClientName MonthBook MatureDate); set werkwm.martaccount202210; where Accom_FinDescript = 'Floorplan' and Accom_Repstatus ne 'Closed' and MonthBook = &effmonth; rename AccoM_ArrDays = ArrDays AccoM_Prindebt=Prindebt AccoM_Term=Term AccoM_RateOffset=RateOffset DealerCode=DealerCode KeyIBIS=KeyIBIS Client_Name=ClientName MonthBook=MonthBook AccoM_MatureDate=MatureDate; LABEL ArrDays='Arrival Days' Prindebt='Principal Debt' Term='Term in Months' RateOffset='Rate Offset' DealerCode='Dealer Code' DealerName='Dealer Name' KeyIBIS='KeyIBIS' ClientName='Client Name' MonthBook='Month Booked' MatureDate='Maturity Date'; run; Data FloorplanAll; set FloorplanA FloorplanB; run; /*Daily Tables gevat in die stap- omdat die table tables upate en daar nie veel veranderinge is nie.*/ data FloorplanApps (keep= VTraxM_varCustomerNo VTraxM_decPrice VTraxM_decDocFee VTraxd_decPrincipleDebt VTraxM_decServiceFee VTraxM_decTotalInterest VTraxM_varLegalName VTraxM_varCurrStatus VTraxM_dtCurrStatus VTraxM_KeyDateSettle decDaysOnBook KeyIBIS rename = (VTraxM_varCustomerNo=CustomerNo VTraxM_decPrice=Price VTraxM_decDocFee=DocFee VTraxM_decPrincipleDebt=PrincipleDebt VTraxM_decServiceFee=ServiceFee VTraxM_decTotalInterest=TotalInterest VTraxM_varLegalName=LegalName VTraxM_varCurrStatus=CurrStatus VTraxM_dtCurrStatus=CurrStatusDate VTraxM_KeyDateSettle=DateSettled decDaysOnBook=DaysOnBook)); label CustomerNo="Customer Number" Price="Price" DocFee="Document Fee" PrincipleDebt="Principle Debt" ServiceFee="Service Fee" TotalInterest="Total Interest" LegalName="Legal Name" CurrStatus="Current Status" CurrStatusDate="Current Status Date" DateSettled="Date Settled" DaysOnBook="Days On Book"; set Werkwd.martvtraxapplications202210; where KeyIBIS ne (.); run; Proc sql; create table FloorplanJoin as select a.*,b.* from FloorplanAll a left join FloorplanApps b on a.KeyIBIS=b.KeyIBIS; quit; proc sort data= FloorplanJoin; by Dealercode DealerName; run; data Floorplan2 (keep= VTraxM_varCustomerNo VTraxM_bActive VTraxM_varDealerCode VTraxM_varLegalName VTraxM_decServiceFees VTraxM_decFacilityAmount VTraxM_varFacilityType VTraxM_decFacilityUtilized VTraxM_decFacilityBalance VTraxM_varDealerName VTraxM_varDealerCode rename= (VTraxM_varCustomerNo= CustomerNo VTraxM_bActive= Active VTraxM_varDealerCode= DealerCode VTraxM_varLegalName=LegalName VTraxM_decServiceFees = ServiceFees VTraxM_decFacilityAmount= FacilityAmount VTraxM_varFacilityType =FacilityType VTraxM_decFacilityUtilized = FacilityUtilized VTraxM_decFacilityBalance= FacilityBalance VTraxM_varDealerName = VarDealerName VTraxM_varDealerCode = VarDealerCode)); label CustomerNo = "Customer Number" Active = "Active Status" DealerCode = "Dealer Code" LegalName = "Legal Name" ServiceFees = "Service Fees" FacilityAmount = "Facility Amount" FacilityType = "Facility Type" FacilityUtilized = "Facility Utilized" FacilityBalance = "Facility Balance" VarDealerName = "Variable Dealer Name" VarDealerCode = "Variable Dealer Code"; set WerkWD.MARTVTRAXDEALERS202210; if VTraxd_decFacilityAmount eq 0 and VTraxd_decfacilityBalance eq 0 then Delete; if VTraxd_bActive ne 1 then delete; run; proc sort data= Floorplan2; by VarDealerCode VarDealerName; run; Proc sql; create table Floorplan3 as select a.*,b.* from FloorplanJoin a left join Floorplan2 b on a.CustomerNo=b.CustomerNo; quit; proc sort data=Floorplan3; by VarDealerCode FacilityAmount RateOffset DocFee ServiceFees FacilityType FacilityUtilized FacilityBalance; run; /* Create new variables that keep the first values for each group */ data FloorPlanDaily; set Floorplan3; by VarDealerCode FacilityAmount RateOffset DocFee ServiceFees FacilityType FacilityUtilized FacilityBalance; /* If this is the first observation for a group, then keep the values */ if first.VarDealerCode and first.FacilityAmount and first.RateOffset and first.DocFee and first.ServiceFees and first.FacilityType and first.FacilityUtilized and first.FacilityBalance then do; new_FacilityAmount = FacilityAmount; new_RateOffset = RateOffset; new_DocFee = DocFee; new_ServiceFees = ServiceFees; new_FacilityType = FacilityType; new_FacilityUtilized = FacilityUtilized; new_FacilityBalance = FacilityBalance; end; /* Otherwise, assign missing values */ else do; new_FacilityAmount = .; new_RateOffset = .; new_DocFee = .; new_ServiceFees = .; new_FacilityType = .; new_FacilityUtilized = .; new_FacilityBalance = .; end; /*Dropping the Old fields */ drop FacilityAmount ArrDays RateOffset DocFee ClientName ServiceFees FacilityType FacilityUtilized FacilityBalance; run; Thank you for your assistance.
... View more
09-16-2023
09:32 AM
Hi, please can someone please help me. I have this code attached below. the outcome on the report needs to be as follow: NumApp =2166 NumGoedKeur =300 Numbook =274 I managed to get the Approved Applications that off 274, but the problem comes in where the NumApp and the NumGoedkeur is the same as 274, and it actually needs to be NumApp= 2166, and the NumGoedKeur is 300. so somewhere in my code i am not calculating the correct table in order to get the NumApps and the NumGoedkeur, and due to the NumApps, NumGoedkeur and Numbook is pulling through the same amount of 274, the calculations off all the other fields is showing 100% please can someone please help me just to sort out this small calculation mistake then i can create the rest of the report. Proc sql; create table data1 as select A.KeyDateEntr,a.Applm_StatusCode, a.ApplM_Status,a.ApplM_MarketCode,a.ApplM_MarketName, a.KeyAInfra, A.Applm_SCategory,a.Applm_HubName,a.KeyDataDate,a.Applm_TimeLaps, a.ApplM_Prindebt,A.Applm_NedChannel,a.ApplM_Source,a.Applm_SourceDesc, B.KeyDateBook,b.AccoM_RepStatus,b.AccoM_MotorDiv, b.AccoM_RateOffset, b.AccoM_RateType,b.MFCRef,b.AccoM_Rate, b.AccoM_Prindebt,b.monthbook from WerkWM.MartAppMini as a left join werkwm.martaccount as b on a.KeyIBIS = b.KeyIBIS where b.monthbook = 202308 and ApplM_Source in ('32', '33', '34'); quit; Data data2; set data1; if KeyDateEntr ne . then AppCount = 1; if ApplM_StatusCode = 'CAPD' then Goedkeur = 1; if KeyDatebook ne . then NumBook = 1; if AccoM_RateType = "PRM" then PRM = 1; else if AccoM_RateType = "FXD" then Fixed = 1; else if AccoM_RateType = "OFC" then OFC = 1; Attrib NEDChannelDesc format = $25. label = 'NED Channel Description'; NEDChannelDesc = put(ApplM_NedChannel,NEDChannelDesc.); run; proc sort data = data2; by KeyAInfra; run; data data3(drop = KeyAInfra); merge data2(in = hoof) WerkWM.DIMAPPLINFRA(keep = KeyApplInfraM ApplM_ExternalRef rename = (KeyApplInfraM = KeyAInfra)); by KeyAInfra; if hoof; if ApplM_Source = '32' then do; if missing(ApplM_ExternalRef) then NEDChannelDesc = catt(NEDChannelDesc,'(Online)'); else NEDChannelDesc = catt(NEDChannelDesc,'(Branch)'); end; run; Proc Sql; Create Table WerkHubApps as select Applm_SourceDesc,NEDChannelDesc, sum(AppCount) as NumApps , sum(Goedkeur) as NumGoedkeur, sum(case when ApplM_SCategory = "Risk1" then 1 else 0 end) as Risk1 format = 8., sum(case when ApplM_SCategory = "Risk2" then 1 else 0 end) as Risk2 format = 8., sum(case when ApplM_SCategory = "Risk3" then 1 else 0 end) as Risk3 format = 8., sum(case when ApplM_SCategory = "Risk4" then 1 else 0 end) as Risk4 format = 8. from data3 group by Applm_SourceDesc, NEDChannelDesc UNION ALL select "Total" as Applm_SourceDesc,"Total" as NEDChannelDesc, sum(AppCount) as NumApps , sum(Goedkeur) as NumGoedkeur, sum(case when ApplM_SCategory = "Risk1" then 1 else 0 end) as Risk1 format = 8., sum(case when ApplM_SCategory = "Risk2" then 1 else 0 end) as Risk2 format = 8., sum(case when ApplM_SCategory = "Risk3" then 1 else 0 end) as Risk3 format = 8., sum(case when ApplM_SCategory = "Risk4" then 1 else 0 end) as Risk4 format = 8. from data3; create table WerkHubBook as select Applm_SourceDesc,NEDChannelDesc, sum(NumBook) as NumBook, sum(AccoM_Prindebt) as AmtBook format = KRandm., sum(Fixed) as Fixed label = "# Fixed Rate", sum(PRM) as PRM label = "# Prime Link", sum(OFC) as OFC label = "# Staff Rate", sum(AccoM_RateOffset*AccoM_Prindebt) as AmtRatWei, sum(AccoM_Prindebt) as AmtBook1 format = 15.2, calculated AmtRatWei / calculated AmtBook as WAVG format = 6.2 from data3 where NumBook = 1 group by Applm_SourceDesc, NEDChannelDesc UNION ALL select "Total" as Applm_SourceDesc,"Total" as NEDChannelDesc, sum(NumBook) as NumBook, sum(AccoM_Prindebt) as AmtBook format = KRandm., sum(Fixed) as Fixed label = "# Fixed Rate", sum(PRM) as PRM label = "# Prime Link", sum(OFC) as OFC label = "# Staff Rate", sum(AccoM_RateOffset*AccoM_Prindebt) as AmtRatWei, sum(AccoM_Prindebt) as AmtBook1 format = 15.2, calculated AmtRatWei / calculated AmtBook as WAVG format = 6.2 from data3 where NumBook = 1; quit; /*Building the report*/ Data Report; merge werkhubApps WerkHubBook; Attrib GoedKeurPerc format = 4.1 Label = "Approval Ratio" BookPerc format = 4.1 Label = "Book Ratio" AmtBook format = KRandm.; by Applm_SourceDesc NEDChannelDesc; if NumApps > 0 then GoedKeurPerc = round(NumGoedkeur / NumApps * 100,0.1); else GoedKeurPerc = 0; if NumGoedkeur > 0 then BookPerc = round(NumBook / NumGoedkeur * 100,0.1); else BookPerc = 0; if missing(Fixed) then Fixed = 0; if missing(PRM) then PRM = 0; if missing(OFC) then OFC = 0; if missing(NEDChannelDesc) then delete; run; thank you
... View more
09-15-2023
10:17 AM
Hi, i am really struggling with a code, I have all the fields that needs to be used in the code. the code should have the specific layout as per the screen print attached. i have attached the code Aswell. please can someone help me to solve this report.
... View more
09-15-2023
09:35 AM
Good day, I am still pretty new in this. please can someone just assist me with a code i am really struggling with, is there a way I can chat with someone directly that can help me. I need to have a layout like the attached, and i really have been struggling with this for the last two week. I have all the fields that needs to be used in the code, but i am not sure where to start
... View more
08-30-2023
05:49 AM
thank you, so this answers my question to see where the same ID went to the same dealer. but I also want to see the same Id that went to different dealers.
... View more
- Tags:
- you - so this
08-30-2023
05:21 AM
Good day, Can someone please help me. I have a list of ID numbers (915) out of this list i need to see 2 things : 1. if this ID applied at the same dealer and how many time 2. if this id applied at different dealers and how many time. please can you assist me on the logic
... View more
06-28-2023
09:06 AM
Hi, can someone please help me. I have a Colum with a few different statuses in that specific column. I only want 1 status to show on my output- for example there is statuses fraud, Other, STP-Wait, i only want Fraud to display on my data output. I am not sure what i am doing wrong but it gives me blanks- and i know there is a Fraud status. please help me Mellissa
... View more