1. Business Context
ViaSul Experiências Turísticas is a fictional tourism agency serving as a Business Case. Starting in 2021, the company adopted an aggressive commercial expansion strategy. Aiming to boost sales of high-ticket products (like Patagonia expeditions and all-inclusive resorts in Búzios), the company drastically loosened access to credit by introducing Recurring Installments (a model where monthly installments are debited without tying up the customer's total credit card limit).
The business strategy succeeded in increasing sales volume; however, it required careful risk monitoring. The major business challenge was avoiding the trap of diluting risks. If the board analyzed defaults solely from a macro perspective, the volume of healthy sales could mask the default rates of premium products. On the other hand, analyzing only the recurring model would ignore the company's capacity to generate healthy revenue. My role was to build a data model that allowed the board to analyze both lenses simultaneously.
2. Project Objectives
This project required modeling focused on Business Scoping, with the following strategic objectives:
- Data Consolidation (ETL): Expand the analytical view by integrating 100% of the contracts (Traditional and Recurring) to form a global picture of the company's health.
- Risk Isolation by Modality: Build metrics that allowed for fiduciary "drill-down," mathematically separating the risk of upfront/traditional operations from the risk of recurring installments.
- Cohort Maturity Analysis (Aging): Evaluate the financial gap by discounting future receivables, focusing the loss calculation strictly on what was already past due.
3. Data, Modeling, and Audit (ETL)
The initial extraction encompassed a raw transactional CSV database containing 469,468 payment records, mapping 169,591 unique contracts (purchases) over years of operation.
The Consolidation Strategy in ETL: The initial analytical scope of many credit projects tends to isolate only the at-risk contracts to test their viability. However, to expand this analytical view and understand the relative weight of this risk within the business as a whole, I used Python scripts (Pandas) to ensure the incorporation of over 119,000 contracts from the "Traditional" model (upfront/PIX/standard credit card) into the global revenue calculation.
import pandas as pd
import numpy as np
# Revenue consolidation integrating the Traditional model for the global view
purchases['Valor_a_Pagar'] = np.where(
purchases['Total Parcelas Recorrentes'] > 0,
purchases['Total Parcelas Recorrentes'] * purchases['Valor'],
purchases['Valor'] # Ensures accounting of upfront/PIX payments
)
print(f"Consolidated Global Revenue: BRL {purchases['Valor_a_Pagar'].sum():,.2f}")
With a 100% intact transactional base, I modeled the database in Power BI following Ralph Kimball's guidelines (Star Schema). Two heavy fact tables (fParcelamentos, centralizing the macro view of sales, and fPagamentos, detailing the installment ledger) were integrated with four dimensions (Customers, Products, Locations, and dCalendar).
To ensure accounting precision, I developed robust DAX measures using time intelligence (DATEDIFF) to calculate only the Expected Revenue of Mature Cohorts (Aging). Furthermore, risk segregation required advanced techniques to isolate the recurring model's behavior and avoid the context overwrite generated by the internal filters of the base measures:
// To isolate the risk of the Recurring model without suffering from "Context Overwrite"
// (generated by the mature cohort calculation), I used the KEEPFILTERS function.
% Inadimplencia Recorrente =
CALCULATE(
[% Inadimplencia Global],
KEEPFILTERS(fParcelamentos[Total Parcelas Recorrentes] > 0)
)
4. Dashboard Overview
The analytical interface was designed with a focus on Data Storytelling for the C-Level, translating technical complexity into easily consumable strategic direction.
- Macro View (Cards): Consolidate the audited BRL 171.43 Million in sales, BRL 160.96 Million in liquidations, and the Absolute Cash Gap (Loss) of BRL 10.47 Million in mature cohorts.
- Cash Decomposition (Waterfall): A waterfall chart that immediately highlights the corrosion of Expected Revenue by monthly defaults.
- Risk by Modality (Bars): The clustered bar chart brutally exposes the difference in financial behavior between the Traditional and Recurring portfolios, keeping both analyses side by side.
- Portfolio Performance (Heatmap): Detailed matrix by product. Conditional formatting surgically points out (in red alerts) where premium products are concentrating losses.
Integrated Perspectives
5. Business Insights
The dual-perspective analysis revealed the organization's complete risk landscape. Under the consolidated lens, the company's global health presents a 6.11% Default Rate, showing that the traditional operation heavily dilutes the business's aggregate risk.
However, when using DAX to isolate the portfolio, the focused lens revealed that the Recurring model consolidated a toxic default rate of 26.28%. At the portfolio level, the true financial burden occurred in product PR7 (Búzios Resort), which alone concentrated nearly BRL 6.97 Million of the cash gap. High-ticket installments attract demand, but without proper fiduciary safeguards, they expose the company's balance sheet.
6. Accounting & Financial Perspective
The consolidated view reassures the treasury regarding the macro health of the organization. The traditional model remains the sustainable engine of the operation.
However, from a managerial standpoint, the risk isolation alerts the CFO to the need to allocate the BRL 10.47M as an Allowance for Doubtful Accounts (PDD) based solely on the recurring portfolio. The analysis demonstrates that the current commercial policy (flat 2.49% monthly interest rate) does not compensate for the risk of this specific portfolio, requiring a restructuring of the rates demanded from different borrower profiles.
7. Legal, Risk & Compliance Perspective
Aggressively granting credit in the tourism sector carries intrinsic fiduciary risk. This is "clean credit" direct-to-consumer (CDC) where the service is consumed and cannot be repossessed (unlike vehicle financing, for example). Treating the entire business as if it were performing at the same risk level as the recurring model would be a mistake, but ignoring it would compromise Compliance.
Legal Analytics Note: I emphasize that this project strictly focuses on data analysis and business decision support, and does not serve as legal advice. However, maintaining a deficit portfolio, operating with 26% risk in an isolated line, requires corporate governance actions from senior management towards stakeholders. Furthermore, the analytical methods applied followed strict anonymization protocols (LGPD/GDPR) when handling traveler profiles.
8. Data Quality & Analytical Limitations
The biggest technical challenge of the project was ensuring Integrity in Risk Segregation. Mathematically diluting a 26% (recurring) default rate into 0% (traditional) could mask the financial drain and give a false sense of security. The governance of the DAX code was vital to keep these two complementary readings side by side. The main limitation imposed on this current model is its descriptive and diagnostic nature: it evaluates the mature cohort with surgical precision, but bases forecasts for immature cohorts on historical behavior, not individualizing the isolated probability of each contract that has yet to mature.
9. Impact & Strategic Recommendations
With the dual analytical perspective implemented, the dashboard provides the board with guidelines that shape the future of credit granting:
Consolidated View
Presentation of the company's global health with a macro revenue of BRL 171 million, avoiding treating the entire business through the bias of a single portfolio.
Risk-Based Pricing
Mathematical foundation for the adoption of risk-based pricing. Traditional credit remains accessible, while Recurring requires larger spreads.
Premium Safeguards
Strategic limitation on high-end packages. The sale of products with a high default weight (like PR7) is highlighted to undergo restrictions and severe analysis.
10. Conclusion
This project symbolizes the importance of Business Scoping in Data Analytics. An isolated analysis focuses on the viability of a specific product (recurring installments); a consolidated analysis answers for the global health of the company. One reading does not invalidate the other; they complement each other to form executive intelligence.
By uniting the disciplines of Data Analytics, Managerial Accounting, and Risk Management, the model provides leadership with the ability to expand sales without assuming unsustainable leverage. The next step in technical maturity for this organization will be the implementation of Machine Learning models, aiming to predict individual default probability even before the travel package is issued.