01-Instructivo Modelo Advisory
01-Instructivo Modelo Advisory
The main goal of this file is to translate what we receive from de DT to FS’ language (clean
data) and construct the Project Table Input. For the Project Table Input we need the following
data:
- Before to start with the Preproject file, create the Risklines files with the Unique Collateral
tab (see the first step of Risklines).
- In the “1.UniqueCollateralsDTSheet” tab of the Preproject file, change the “Project Name”.
- Insert the number of the rows in the macro and execute it.
- Bring the information by “Unique Collateral” from Risklines file. The first grey columns are the
data from DT (Risklines)
2. Location Assets
There are different ways of locating an asset: with the cadastral reference, google maps and
INE CODE (it is only an approximation).
A. Catastro
1. Check all the “FALSE” values in the column “Cadastro can be used?”. If any Cadastral
Reference data is correct but appears “FALSE” change it to “TRUE”.
2. Use the macro “Create Cadastro CSV” from the “UniqueCollateralsDTSheet”. The goal is to
create a new table in a new file with two columns: “Collateral ID” and “Cadastral
Reference”, so click on it and a new file with the table will be created.
3. Save the file (Ctrl+S) and close it. The file will be saved in G:\Projects\DD\002-Tools\
Catastro.
! To open the two output tables, follow “Open CSVs” (annex) instructions.
Once the output table are opened, copy the data in the “PasteCadastralCoordinates” and
“PasteCadastralDetails” sheets from the Preproject.
B. Googlegeo Tool
Used when the Cadastral reference does not work. The procedure is the same as the
catastro.
1. Create the input table. Take the file from another project and copy the data from the
current project (columns A-F)
2. Save the input table in G:\Projects\DD\002-Tools\GoogleGeoTool\Files
3. Go to DD->002_Tools->GoogleGeoTool->cntrl+shift+rightclick->open PowerShell window
here (! make sure you are not inside the folder “files”)
4. Command (write “cmd”) and write: “GoogleGeoTool geocode /i:G:\Projects\DD\002-
Tools\GoogleGeoTool\Files\Yellowstone.csv/o:G:\Projects\DD\002-Tools\
GoogleGeoTool\Files\YellowstoneOUT.csv /t:500”
Once the output table are opened, copy the data in the “PasteGoogleTool” from the
Preproject.
To check output:
1. In the “Manual Reject column” write FALSE if the “LocationType” column is “Rooftop” or
“Range_Interpolated”; and write TRUE if it is “Geometric_Centre” or “Aproximate”.
2. In the “Manual Type” write “Google Maps” if the “LocationType” column is “Rooftop”;
and with “GoogleMaps (Aprox.)” if it is “Range_Interpolated”, “Geometric_Centre” or
“Aproximate”.
C. INE Code
When Catastro and GoogleGeo Tool do not work, do it through “INE CODE” - check the
columns “DT parish 1” and “DT parish manual” and linked to “MunicipalityInfor” sheet.
3. Mapp Typologies
1. On “2.DTvsDD Map” tab include the unique typologies from DT. Then, map the DT
typologies with the FS ones that are in the “Typologies” tab. The manual columns are the
orange ones.
2. On “1. UniqueCollateralsDTSheet” check manually the typologies. To do this, filter the
FALSE values for each of the following columns (one by one): Min Area, Max Area, Min AV
and Top 10 Lowest and Top AV.
3. If a collateral has some wrong typology, correct it on the “Manual Reviewed Final” area,
column “DD_TypologyID”.
4. When they are checked, write TRUE in the “Manual checked (TRUE/FALSE)” column.
Use the macro “Create Project Table” to create the input table. The new table will be saved in
the “04. Real Estate Analysis” folder.
Note: Within the DT we will usually receive latitude and longitude for each asset. Despite this,
we will always use the latitude and longitude that we obtain from Catastro Tool.
5. Query Developments
Development: a group of assets with the same characteristics, within the same location, built
or funded by the same agent. It can be a way of grouping assets and make a “apples to apples”
comparison
- Save the last project query, so change the name of “dbo.project” to the last project.
(ej:“dbo.projectTalos”)
- Clean the content the last user left in the server when he used the program. To do this, go
to Databases/QGIS/Tables right-click on “dbo.input” and ! “Select Top 1000 rows”.
- In the first half (dividing the screen horizontally) you will have to remove all the current
content from “[QGIS].[dbo].[Input]” to the left, and type “truncate table” instead. It will
look like this:
- Press “F5” (equivalent to enter in SQL) to execute your new command and your server will
now be ready.
! NOTE: if it does not work, before starting this procedure, follow the “Access path when
dbo_Input does not work” instructions (Annex) and then try it again.
- Once the query is executed, could be that the previous project table was saved with other
name (because you did not want to lose it for another project), the query will probably
show an error saying that the project table could not be created because it did not exist.
Here you only need to go to SQL and update the database:
After this, you will see the new dbo.project table within the folder “Tables” in QGIS is ready
to be downloaded.
- To export the table, go to output file (dbo.project) open top 1000; select all + right click
Save as CSV in Real Estate Analysis with the name “ProjectName_ProjectTable_Output”
6. Check Developments
COLLATERAL VALUATION
The objective is to calculate the market value of the collaterals. There are two methods that
we must implement: Closing & Asking and Property Records.
The procedure to obtain the market value and consolidate it in our files for each method:
Closing & Asking: Tercero B -> AVM -> CollateralValuation -> Risklines
Property records: PropertyRecords -> CollateralValuation -> Risklines
Around 40% of the appraisal value of a portfolio is appraised through this method.
! Currently we only use Asking values.
Step 1: the starting point is the Project Table, so you need the table in SQL. Once this is done,
you can go and execute “dbo.TerceroB”:
- Open TerceroB Grouped Table in Excel - ! following the “Open CSVs” instructions
- Delete ClosingPrices rows (currently only use Asking prices)
- Save it as “ProjectName.csv” in G:\Projects\DD\002-Tools\3B
Step 4: Create asking output file (the comparable assets to be used for the AVM)
1. Go to G:\Projects\DD\002-Tools\3B
2. Ctrl+shift+rightclick-> “open PowerShell window here”
3. Command (write “cmd”) and write:
“3BCrawler (Name of input file).csv (Name of output file)_Output.csv”
NOTE: The maximum number of comparable assets that the 3B query will give us is 30 for
asking. This does not mean that it will always find 30 comparable assets.
The “Market Value Adjusted” and “MV Capped” columns are the main columns of the
Collateral Valuation file.
The “Development” and “MV Adjusted” must be copied in the Risklines file.
RISKLINES
We use Risklines file to identify the unique relations between loans and collaterals and create
the Loan Groups (LG). Also, to calculate those representative values of the portfolio that we
need to show in the presentation.
A LG is the pooling of all loans and collaterals that are related, so one LG has all the loans and
collaterals that are related with each other.
! Each portfolio is different, so the following instructions may vary depending on it.
The file should contain the following information tabs (other than auxiliary tables):
Collateral – Loan
Unique Collaterals
Loans
Participants
Insolvency
Judicial
Debtor Summary (if the DT does not contain this tab, create it)
LG Summary (new tab with data from the above tabs)
To add the new FS columns in the above tabs and the auxiliary tables use the
“ProjectClean_Risklines” file.
4. Loans tab
5. Participants tab
7. Debtor Summary
If there is no debtor table in the DT file, create a new one and copy the information from DT
about debtors.
FS columns may vary depending on the project, but usually are:
Perimeter: depends on “Loans” tab
Type of Participant: Company or Individual
Total OB: sum the values from “Loans” tab
OB 1st lien: sum the values from “Loans” tab
AV: sum the values from “Loans” tab
MV: sum the values from “Loans” tab
MV Capped: sum the values from “Collateral-Loan” tab
Ranking: by MV Capped
Top Debtor?: depends on the project select x number of top debtors
BK? – BK Phase – Judicialized? – Judicial phase : use data from “Loans” tab and
“AuxLegalDebtor”
8. LG Summary
A LG is the pooling of all loans and collaterals that are related, so one LG has all the loans and
collaterals that are related with each other.
Information it should contain:
Loan Group: manual
Perimeter: depends on “Loans” tab
Loan Group type: UNSEC / 1L-1C / ML-1C / ML-MC / 1L-MC
Type of Debtor: use “AuxMainDebtor” tab
Debtor ID: use “AuxMainDebtor” tab
# Loans
# Collaterals
OB
OB 1st Lien
LEGAL
Step 1. Mapping tabs
These tabs are used to map the judicial and insolvency phases of the DT with those of FS
Mapping FCL tab
1. In the first columns copy unique values of judicial phases from DT
2. Find each phase of the DT in the “DocumentType” tab and copy it in the “Document”
column
Mapping Bankruptcy tab
Step 3. Bankruptcy
Insolvency debtors level tab.
Copy the information from Insolvency Risklines data
UNDERWRITING
Strategies are defined on a loan group level, packed into different strategy buckets
(REO/POA/DILR/DPO).
The “bucketing” will depend mostly on the type of debt, BK phase, Judicial phase, LTV and
junior liens. Each bucket is indexed to the UW Matrix, which is predefined, with % of
probabilities for each strategy and timings of their own.
Example:
Introduction
STRATEGY BUCKETS
Judicial strategy:
REO
Extrajudicial strategies:
POA is a legal document that entitles one or more people to act on behalf of another
person for certain purposes. An agreement is reached with the debtor to give us his asset,
authorizing us to sell it.
An agreement is reached with the debtor to give us his asset and the debt is forgiven. The
asset goes on the ReoCo’s balance sheet, so that it can be sold.
The debt is discounted in exchange for the remainder being paid. The idea is that the
debtor refinances to play the remainder (if the LTV is slow, <80%). In this strategy we have
no MP and no risk related to asset.
NO ACTION DEL
DOCUMENTATION DEL
LAWSUIT ADMISSION S<Auction
CLAIM MANAGEMENT S<Auction
AUCTION S>=Auction
AWARD S>=Auction
POSSESSION S>=Auction
PHYSICAL POSSESSION S>=Auction
UW file
! The OB should be distributed among the different buckets, so at the end, when all the tabs
are complete, check the “Aux Matrix” tab.
UW – LoanGroups tab
Bring the data from Risklines (LG tab) to the manual columns.
Collaterals tab
Judicial tab
Copy the pivot table from Legal file (“Judicial Phase by Loan Group” tab)
Participants tab
BK tab
ANNEX
Open CSVs
Step 2
Step 3: Select “General” data format for all fields except for latitude, longitude and
INE code that we must select “Text”.
Click on “Advanced”. Decimal separator sholud be “.” And Thousand separator “,”
Step 1: Go to External Data -> New Data Source -> From Database -> From SQL Server
Step 2: select “Link to the data source by creating a linked table” and click on OK
Step 3: Go to “Machine Data Source” and then “New”
Step 4: Select “User Data Source (Applies to this machine only) and Next >
Step 5: select “ODBC Driver 17 for SQL Server” and Next >
Step 6: In the “Server” field fill in “fs-es-mgmt01\finsolutia” (the other fields do not matter
what name we give them). Next >
Step 7: select “With Integrated Windows authentication” and Next >
Step 8: select “Change the default database to:” and “QGIS” option. Next >
Step 9: select “Perform translation for character data” and Finish