Hello! Welcome back to the capstone module.
In our last lesson, we focused on the strategic foundation of any great data visualization project: defining your audience and the key questions your dashboard will answer. We established that starting with a clear purpose—the "why"—is the most critical step in building a dashboard that drives decisions.
Now that you know how to formulate the right questions, we'll move to the next logical step in our project lifecycle. To answer those questions, you need data. This lesson is dedicated to exactly that. Our learning outcome is to identify and source the necessary data for a chosen financial analysis scenario. We will explore the vast landscape of financial data, from free web sources to powerful APIs, and learn practical techniques to bring that data into our tools.
1. From Questions to Data Requirements
In the previous lesson, we used the Goal -> Question -> Visual -> Action framework. The "Question" step directly determines your data needs. Before you search for data, you must translate your key questions into a specific list of required data points.
For example:
- Question: "Is Apple's stock overvalued compared to its historical performance?"
- Data Needed:
- Historical daily prices (Open, High, Low, Close, Volume) for AAPL.
- Historical financial ratios (e.g., Price-to-Earnings, Price-to-Book) for AAPL.
- Question: "How does the performance of the tech sector compare to the broader market?"
- Data Needed:
- Historical prices for a tech sector ETF (e.g., XLK).
- Historical prices for a broad market index (e.g., S&P 500).
A structured approach is key. The "Dashboard Planning Checklist" we're about to look at provides an excellent framework for thinking through your data needs.
seven advanced KPIs for FMP-powered investor dashboards
This article, 'Seven Advanced KPIs for FMP-Powered Investor Dashboards', includes a great checklist for planning a dashboard. We will use it to structure our data identification process.
Read the short section titled 'Dashboard Planning Checklist'. Think about how each point—Audience, Update Cadence, Metric Type, and Granularity—forces you to be more specific about the data you need.
This checklist helps you define not just what data you need, but also its characteristics: how often it should be updated, what level of detail is required, and what type of metrics it will support.
2. Sourcing Market Data: Free and Accessible Sources
One of the most common needs in financial visualization is historical market data (prices and volume). Luckily, there are excellent free sources available. Yahoo Finance is a popular choice for both individual investors and professionals.
While you could download a static CSV file, a much better approach for building dashboards is to create a live connection. This way, your data can be refreshed automatically. The following video demonstrates a clever technique to do this using Power Query, which is built into both Excel and Power BI.
Analyze Financial Data in Excel #01: Connect to web w/ Power Query
Watch this video from Sensdat to learn how to create a dynamic connection to Yahoo Finance data within Excel using Power Query.
Watch from 00:45 to 03:28. The key moment is when the presenter right-clicks the 'Download Data' link to copy its address instead of clicking it directly. Pay close attention to this workflow, as it's a powerful way to connect to web data that you'll use in Power BI as well.
This method is powerful because it creates a repeatable, refreshable query. Every time you refresh the query, it pulls the latest data from Yahoo Finance, ensuring your analysis is always up-to-date without manual downloads.

3. A More Powerful Method: Using APIs
While the Yahoo Finance trick is useful, the most robust and scalable way to source data is through an Application Programming Interface (API). Think of an API as a structured way for one software program (like Power BI) to request data from another (a data provider's server).
For financial data, services like Alpha Vantage offer free APIs that provide access to a huge range of datasets. Using an API allows you to pull data directly into Power BI and build highly interactive and automated dashboards.
The next video provides a step-by-step guide on how to use the Alpha Vantage API to get stock data in Power BI.
Stock Market Data for Dashboards in Power BI
This comprehensive video from Ptarmy will walk you through getting a free API key from Alpha Vantage and using it to pull a wide variety of financial data directly into Power BI.
This video is packed with practical steps. Watch from 00:49 to 02:19 to see how to get your free API key and explore the types of data available. Continue from 02:19 to 08:12. This is the core section. Follow how the presenter brings stock data into Power BI's Power Query Editor, cleans it, and then cleverly creates a parameter for the stock ticker. This parameter technique is extremely powerful for building user-friendly dashboards. Skim from 08:12 to 15:17. You don't need to follow every detail, but notice the variety of data he pulls using the same basic method: oil prices, company cash flow statements, IPO calendars, and foreign exchange rates. This shows the true power of using an API.
Using an API, especially with parameters as shown in the video, is a professional-grade skill that forms the backbone of many interactive financial dashboards. It allows a user to, for example, type in a new stock ticker and have the entire dashboard update automatically.
4. The Broader Data Landscape
Financial analysis goes far beyond stock prices. To build a comprehensive view, you'll often need to incorporate other types of data. Your Master's studies in Global Financial Markets will have already exposed you to many of these categories.
Here's a breakdown of common data types and where to find them:
-
Company Fundamental Data: Information from a company's financial statements. This is crucial for assessing a company's health and valuation.
- Data Points: Revenue, Net Income, Cash Flow from Operations, Debt, Equity.
- Sources: Company "Investor Relations" websites, regulatory filings like EDGAR (for US companies) and SEDAR (for Canadian companies). Many APIs, including Alpha Vantage, also provide this data.
-
Economic Data: Macroeconomic indicators that provide context about the overall economic environment.
- Data Points: GDP growth, inflation rates (CPI), unemployment rates, interest rates.
- Sources: Central bank websites (e.g., the US Federal Reserve, Bank of Canada), and portals like FRED (Federal Reserve Economic Data).
-
Industry Data: Benchmarks and ratios that allow you to compare a company to its peers.
- Data Points: Average industry P/E ratio, industry growth rates.
- Sources: Specialized databases like IBISWorld or financial data providers.
The following resource from Brock University's library is a great reference guide that lists many of these sources.
Financial Data Sources - FNCE-ACTG 4P03
This research guide provides a curated list of high-quality sources for various types of financial and economic data. It's a great reference to have for your projects.
You don't need to visit every link. Instead, review the page to understand the different categories of data. Pay attention to the 'Free Sources' listed under 'Financial Statements & Ratios', 'Economic Data', and 'Stock Quotes & Related Data'. This will give you a mental map of where to look for different types of information.
Test your understanding!
You are tasked with building a dashboard for a portfolio manager. One of the key questions is: "Is our investment in Microsoft (MSFT) justified, or should we consider reallocating capital to Apple (AAPL)?"
List at least three different types of data you would need to answer this question, and a potential source for each.
Show answer
To adequately compare the two companies, you would need a mix of market, fundamental, and industry data. Here's a possible list:
-
Market Data: To compare stock performance and volatility.
- Data Type: Historical daily stock prices (OHLC) and trading volume for both MSFT and AAPL.
- Potential Source: Yahoo Finance (using the Power Query method) or the Alpha Vantage API.
-
Fundamental Data: To assess financial health, profitability, and valuation.
- Data Type: Key metrics from the income statement and balance sheet for both companies (e.g., Revenue, Net Income, Debt-to-Equity ratio, Return on Equity).
- Potential Source: Company filings on EDGAR, or more conveniently, through the Alpha Vantage API (as seen in the video).
-
Analyst Estimates/Sentiment (Bonus): To gauge market expectations.
- Data Type: Analyst earnings estimates or price targets.
- Potential Source: More advanced APIs or financial terminals (like Bloomberg, which you may have access to at your institute). Some free sources like Yahoo Finance also provide summary-level analyst ratings.
Conclusion
In this lesson, we bridged the gap between the questions you want to answer and the data you need to do so. Finding and sourcing data is a foundational skill for any financial analyst, and mastering it unlocks the ability to create truly insightful visualizations.
Key Takeaways:
- Start with a Data Plan: Always translate your key questions into a specific list of required data fields before you start searching.
- Create Dynamic Connections: Avoid static files. Use methods like Power Query's "From Web" feature or APIs to create refreshable data connections.
- APIs are Your Best Friend: APIs (like Alpha Vantage) are the most powerful and flexible way to source a wide variety of financial data directly into Power BI for automated dashboards.
- Think Beyond Stock Prices: A thorough analysis requires a holistic view, incorporating fundamental company data, macroeconomic indicators, and industry benchmarks.
You've now defined your project's purpose and identified its data. The next logical step is to plan the visual layout and user experience. In the next lesson, we will learn how to create a storyboard or low-fidelity wireframe for a financial dashboard layout, sketching out our vision before we begin building in Power BI.
Can't find a good explanation? Sign up and we'll make it for you
Sign up