{"id":869,"date":"2022-10-28T18:52:26","date_gmt":"2022-10-28T18:52:26","guid":{"rendered":"https:\/\/eodhd.com\/financial-academy\/?p=869"},"modified":"2025-02-05T12:43:14","modified_gmt":"2025-02-05T12:43:14","slug":"price-predictions-in-power-bi","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi","title":{"rendered":"Stocks Price Predictions in Power BI"},"content":{"rendered":"\n<p>Power BI for financial and trading data analysis using financial trading data from EOD Historical Data (EODHD APIs) data API<\/p>\n\n\n\n<p>If you want to learn how to install the EODHD Power Bi Connector for Financial Data APIs and activate your API key, we recommend to start with exploring of our <a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/power-bi-connector-for-financial-data-apis\/\" target=\"_blank\" rel=\"noreferrer noopener\">Documentation for it<\/a>.<\/p>\n\n\n\n<p id=\"4ebd\">Welcome back to the next instalment of my <a href=\"https:\/\/eodhistoricaldata.com\/financial-academy\/?utm_source=medium&amp;utm_medium=post&amp;utm_campaign=financial_apis_academy\" rel=\"noreferrer noopener\" target=\"_blank\">Financial APIs Academy<\/a> series for <a href=\"https:\/\/eodhistoricaldata.com\/?utm_source=medium&amp;utm_medium=post&amp;utm_campaign=price_predictions_in_power_bi\" rel=\"noreferrer noopener\" target=\"_blank\">EODHD APIs<\/a>. The article <a href=\"https:\/\/eodhistoricaldata.com\/financial-academy\/extracting-the-knowledge-from-the-data\/price-predictions-in-power-bi\/\" rel=\"noreferrer noopener\" target=\"_blank\">can also be found here<\/a>.<\/p>\n\n\n\n<p id=\"8af8\">I\u2019ve noticed <a href=\"https:\/\/powerbi.microsoft.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">Microsoft Power BI<\/a> is becoming increasingly popular. At least many of the clients I work with now are using it. I wanted to investigate what it is, how it\u2019s used, and if it could be used for trading data analysis (which is an interest of mine). The <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=58494\" rel=\"noreferrer noopener\" target=\"_blank\">Power BI Desktop<\/a> version is surprisingly free!<\/p>\n\n\n\n<p id=\"b301\">The first \u201c<strong>stumbling block<\/strong>\u201d I faced is I\u2019m a Mac user, and there isn\u2019t a version for OSX currently. The forums are packed with requests for it, so hopefully Microsoft will release it at some point. There are however work arounds.<\/p>\n\n\n\n<p class=\"bordered_paragraph\" id=\"da09\">I got it working using <a href=\"https:\/\/www.virtualbox.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle VM Virtualbox<\/a> (free) and a development virtual machine of <a href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/downloads\/virtual-machines\/\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Windows 11<\/a> (also free). It works but it is seriously resource hungry. I assigned 4 CPU\u2019s and 16384 MB memory and it still did not feel desktop-worthy. I\u2019m not complaining, at least it works. I wrote on article covering how I set it up.<br><a href=\"https:\/\/trading-data-analysis.pro\/power-bi-for-mac-88228621852e\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/trading-data-analysis.pro\/power-bi-for-mac-88228621852e<\/a><\/p>\n\n\n\n<p>I managed to use a Windows desktop to capture some of the screenshots for this article, as the laggy feel to working within the virtual machine was working my last nerve \ud83d\ude09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"61af\">Power BI for Trading and Stocks Price Predictions<\/h2>\n\n\n\n<p id=\"dd00\">I have a keen interest in trading data analysis using a variety of methods. I\u2019m always on the lookout to evaluate new tools, concepts, and strategies. I was not sure if Power BI would be useful or not for this but I thought I would try it out and share my evaluation.<\/p>\n\n\n\n<p id=\"3a38\">The first step is we need some trading data to work with. I have a subscription with <a href=\"https:\/\/eodhistoricaldata.com\/pricing?utm_source=medium&amp;utm_medium=post&amp;utm_campaign=price_predictions_in_power_bi\" rel=\"noreferrer noopener\" target=\"_blank\">EODHD APIs<\/a>, and this is my main source of financial data. There are free tier options as well which are useful when writing articles like this. I found two ways to retrieve data from them directly into Power BI. Both are easy enough but have their own pro\u2019s and con\u2019s. You can decide which method you prefer.<\/p>\n\n\n\n<p id=\"c8a8\"><strong>Option 1: EODHD APIs Power BI Add-on<\/strong><\/p>\n\n\n\n<p id=\"2641\">I found a Power BI add-on on their website. It works well once it\u2019s installed but takes some time to set-up. I like that they have simplified the data retrieval and not having to work with REST API calls. The downside is that it requires you to download the add-on from <a href=\"https:\/\/drive.google.com\/file\/d\/1LJ4otDqyOQwMRpzbGLAh0DlYyXigXnHo\/view?usp=sharing\" rel=\"noreferrer noopener\" target=\"_blank\">Google Drive<\/a> and that you need to turn off add-on security in Power BI in order to use it. It\u2019s a pity that Power BI does not allow you to selectively trust add-ons rather than having to blankety turn them all of completely. I will however show you how it works.<\/p>\n\n\n\n<p id=\"05bf\">You will need to download the <a href=\"https:\/\/drive.google.com\/file\/d\/1LJ4otDqyOQwMRpzbGLAh0DlYyXigXnHo\/view?usp=sharing\" rel=\"noreferrer noopener\" target=\"_blank\">Microsoft Power BI Desktop add-on<\/a> from Google Drive, unzip the archive, and put it in your user Documents directory on your desktop\/VM.<\/p>\n\n\n\n<p id=\"757e\"><strong>Directory Structure:<\/strong><br>Documents &gt; Microsoft Power BI Desktop &gt; Custom connectors &gt; EOD Power BI Connector.mez<\/p>\n\n\n\n<p id=\"c0b4\">Once you have done that open Power BI and go to \u201c<strong>Options and settings<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-875\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png\" alt=\"Power BI Options and settings\"><\/p>\n\n\n\n<p>This is the part I\u2019m not so thrilled about \u2014 under the \u201c<strong>Security<\/strong>\u201d global settings, scroll down to \u201c<strong>Data Extensions<\/strong>\u201d. Make sure the radio button is on \u201c<strong>(Not Recommended) Allow any extension to load without validation or warning<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-876\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings-Data-Extensions.png\" alt=\"Power BI Options and settings Data Extensions\"><\/p>\n\n\n\n<p id=\"d2fd\">Once you have done that click \u201c<strong>OK<\/strong>\u201d. You may be asked to restart Power BI which you will want to do.<\/p>\n\n\n\n<p id=\"bc70\">Click on the \u201c<strong>Get data<\/strong>\u201d menu option in Power BI. You will get a variety of useful options, but for this case we will select \u201c<strong>More\u2026<\/strong>\u201d<br><img decoding=\"async\" class=\"wp-image-877\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Get-data.png\" alt=\"Power BI Get data\"><\/p>\n\n\n\n<p>If all has gone to plan and the custom connector is in the correct place, and the security has been relaxed, if you search for \u201c<strong>eod<\/strong>\u201d you should see the three options below. For this tutorial, please select \u201c<strong>EOD End of day data (Beta)<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-888\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-EOD-End-of-day-data.png\" alt=\"Power BI Options EOD End of day data\"><\/p>\n\n\n\n<p>It will ask if you want to connect using a third-party service, and in this case we do. Check the \u201c<strong>Don\u2019t warn me again for this connector<\/strong>\u201d, and click \u201c<strong>Continue<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-889\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-using-a-third-party-service.png\" alt=\"Power BI using a third-party service\"><\/p>\n\n\n\n<p>Retrieving data via the add-on is so easy. You just specify the ticker with exchange, period, and the from and to (which are optional). I\u2019m using the MCD.US ticker for this article because you can access it for free using the \u201c<strong>demo<\/strong>\u201d API key. If you have an account with EODHD APIs, you can access all their data.<br><img decoding=\"async\" class=\"wp-image-891\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-using-EODHD-demo-API-key.png\" alt=\"Power BI using EODHD demo API key\"><\/p>\n\n\n\n<p>It will ask you for your API key. If you access any of the free tier markets, you can use the \u201c<strong>demo<\/strong>\u201d API key as below.<br><img decoding=\"async\" class=\"wp-image-895\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-click-Connect.png\" alt=\"Power BI EODHD click Connect\"><\/p>\n\n\n\n<p>When you click \u201c<strong>Connect<\/strong>\u201d you will see a preview of the data. This will give you the opportunity to \u201c<strong>Load<\/strong>\u201d the data as is (which we want to do), or \u201c<strong>Transform Data<\/strong>\u201d if you want to make any adjustments on the import.<br><img decoding=\"async\" class=\"wp-image-896\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Transform-Data.png\" alt=\"Power BI EODHD Transform Data\"><\/p>\n\n\n\n<p>When the data is imported into a table it will look as below. The table will be called \u201c<strong>Query1<\/strong>\u201d or similar. My advice from trial and error is not to leave it like this. You will want to give your data a re-usable name like \u201c<strong>MarketData<\/strong>\u201d. I\u2019ll explain why further down but this is definitely something you want to do. The way you rename the table is to right-click on \u201c<strong>Query1<\/strong>\u201d and you will receive a menu, then select \u201c<strong>Rename<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-897\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data.png\" alt=\"Power BI EODHD Market Data\"><\/p>\n\n\n\n<p>If all goes to plan, it should look like this\u2026<br><img decoding=\"async\" class=\"wp-image-898\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-details.png\" alt=\"Power BI EODHD Market Data details\"><\/p>\n\n\n\n<p id=\"0880\"><strong>Option 2: Retrieve the data directly from the API<\/strong><\/p>\n\n\n\n<p id=\"afd6\">Now this is my personal favourite, and not all that complicated to do. You can try this out by opening the following link in your browser, \u201c<a href=\"https:\/\/eodhistoricaldata.com\/api\/eod\/MCD.US?api_token=demo&amp;from=2020-07-01&amp;to=2020-10-23&amp;fmt=json\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/eodhistoricaldata.com\/api\/eod\/<strong>MCD.US<\/strong>?<strong>api_token=demo<\/strong><em>&amp;from=2020-07-01&amp;to=2020-10-23<\/em><strong>&amp;fmt=json<\/strong><\/a>\u201d<\/p>\n\n\n\n<p id=\"f545\">I\u2019ve highlighted the parts of interest. \u201c<strong>MCD.US<\/strong>\u201d is the ticker for McDonald\u2019s Corp. It\u2019s one of the free tickers you can access using the \u201c<strong>demo<\/strong>\u201d API key. If you want to use one of the subscription only tickers you can use your API key instead of \u201c<strong>demo<\/strong>\u201d. The \u201c<a href=\"https:\/\/eodhistoricaldata.com\/api\/eod\/MCD.US?api_token=demo&amp;from=2020-07-01&amp;to=2020-10-23&amp;fmt=json\" rel=\"noreferrer noopener\" target=\"_blank\"><em>&amp;from=2020\u201307\u201301&amp;to=2020\u201310\u201323<\/em><\/a><em>\u201d<\/em>, I\u2019ve included in italics is optional and allows you to specify a range. The \u201c<a href=\"https:\/\/eodhistoricaldata.com\/api\/eod\/MCD.US?api_token=demo&amp;from=2020-07-01&amp;to=2020-10-23&amp;fmt=json\" rel=\"noreferrer noopener\" target=\"_blank\"><strong>&amp;fmt=json<\/strong><\/a>\u201d is important as it instructs the API to return a JSON response which Power BI will understand.<\/p>\n\n\n\n<p id=\"c7a4\">In order to retrieve the data into Power BI, we\u2019ll use the \u201c<strong>Get data<\/strong>\u201d menu item. This time instead of selecting \u201c<strong>More\u2026<\/strong>\u201d, we will select \u201c<strong>Web<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-904\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Get-Market-Data.png\" alt=\"Power BI EODHD Get Market Data\"><\/p>\n\n\n\n<p>Select the \u201c<strong>Basic<\/strong>\u201d option and include your API call (mentioned above) as follows\u2026<br><img decoding=\"async\" class=\"wp-image-905\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-API-call-sample.png\" alt=\"Power BI EODHD API call sample\"><\/p>\n\n\n\n<p>This will return the data into the Power BI query editor. It\u2019s mostly ready to go but I would just rename the query on the left to \u201c<strong>MarketData<\/strong>\u201d as we did before. Click the \u201c<strong>Close &amp; Apply<\/strong>\u201d menu button on the top left and that will populate the Power BI table.<br><img decoding=\"async\" class=\"wp-image-906\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Close-Apply.png\" alt=\"Power BI EODHD Market Data Close Apply\"><\/p>\n\n\n\n<p id=\"fa84\">Both \u201c<strong>Option 1<\/strong>\u201d using the add-on and \u201c<strong>Option 2<\/strong>\u201d using the direct API call will leave us in the same place now. So take your pick which ever you prefer to get you to this point.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"052d\">Forecasting Stocks Prices in Power BI<\/h2>\n\n\n\n<p id=\"36de\">I wanted to introduce you to some \u201c<strong>out-the-box<\/strong>\u201d functionality with Power BI. It will also help you understand the basic components of Power BI and where to find everything.<\/p>\n\n\n\n<p id=\"1acb\">On the left of the image below the \u201c<strong>Clipboard<\/strong>\u201d, you will find 3 icons. The top icon helps you to design your user interface, the middle icon contains your tables and data, and the bottom icon contains your model. We will want to select the top icon to design our user interface.<\/p>\n\n\n\n<p id=\"d127\">On the right you will see three side panels for \u201c<strong>Filters<\/strong>\u201d, \u201c<strong>Visualisations<\/strong>\u201d, and \u201c<strong>Fields<\/strong>\u201d. We will be using \u201c<strong>Visualisations<\/strong>\u201d first. Under \u201c<strong>Visualisations<\/strong>\u201d, there are some great visualisations to help you build your interface. For the forecasting, we will want to add a \u201c<strong>Line Graph<\/strong>\u201d. The icon for this is on the second row on the left.<br><img decoding=\"async\" class=\"wp-image-917\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Visualisations.png\" alt=\"Power BI EODHD Market Data Visualisations\"><\/p>\n\n\n\n<p>When we select it, it will add it to our viewing pane. You will see it asks for two inputs, the \u201c<strong>X-axis<\/strong>\u201d and \u201c<strong>Y-axis<\/strong>\u201d. Expand the \u201c<strong>Fields<\/strong>\u201d side panel and drag the \u201c<strong>date<\/strong>\u201d field from our table onto the X-axis, and \u201c<strong>adjusted_close<\/strong>\u201d onto the Y-axis. It should look like the line graph below (or similar depending on what data has been used).<br><img decoding=\"async\" class=\"wp-image-919\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Visualisations-adjusted-close.png\" alt=\"Power BI EODHD Market Data Visualisations adjusted close\"><\/p>\n\n\n\n<p>We now want to elevate the functionality of our line graph. If you look at the \u201c<strong>Visualisations<\/strong>\u201d panel title, under it you will see three icons. We want to click on the one that looks like a magnifying glass. This will provide us with a load more options. The one we are interested in, is the \u201c<strong>Forecast<\/strong>\u201d. You can fine tune the options later, but you can \u201c<strong>Apply<\/strong>\u201d the defaults for now. Make sure you toggle \u201c<strong>Forecast<\/strong>\u201d to on \ud83d\ude42<br><img decoding=\"async\" class=\"wp-image-922\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Visualisations-Forecast.png\" alt=\"Power BI EODHD Market Data Visualisations Forecast\"><\/p>\n\n\n\n<p>Now this is the first \u201c<strong>gotcha<\/strong>\u201d I noticed\u2026 nothing happens! After some investigation I noticed there was a red cross above my graph. I hovered my mouse over it and I got this error message.<br><img decoding=\"async\" class=\"wp-image-924\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Filters.png\" alt=\"Power BI EODHD Market Data Filters\"><\/p>\n\n\n\n<p>I don\u2019t think Power BI likes an inconsistent trend for forecasting. So how can we fix this? If we look from the beginning of October 2022, there is an upward trend. What we can do is open the \u201c<strong>Filters<\/strong>\u201d side panel and drag our \u201c<strong>date<\/strong>\u201d field from \u201c<strong>Fields<\/strong>\u201d onto the \u201c<strong>Add data fields here<\/strong>\u201d box under \u201c<strong>Filters<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-927\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Filters-Add-data-fields.png\" alt=\"Power BI EODHD Market Data Filters Add data fields\"><\/p>\n\n\n\n<p>What we want to do is change the \u201c<strong>Filter type<\/strong>\u201d to \u201c<strong>Advanced filtering<\/strong>\u201d. Then set the \u201c<strong>Show items when the value<\/strong>\u201d, \u201c<strong>is after<\/strong>\u201d, \u201c<strong>01\/10\/2022<\/strong>\u201d, and click \u201c<strong>Apply filter<\/strong>\u201d. Not entirely sure how Power BI is performing that forecast, but at least it is working. Maybe it will look better using traditional financial data. I am not convinced this is that helpful for trading data.<br><img decoding=\"async\" class=\"wp-image-930\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Advanced-filtering.png\" alt=\"Power BI EODHD Market Data Advanced filtering\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ecce\">Linear Regression in Power BI to Predict the Stocks Prices<\/h2>\n\n\n\n<p id=\"3df9\">I wanted to see if there was some other useful \u201c<strong>out-the-box<\/strong>\u201d functionality in Power BI to help with trading data analysis\u2026 I didn\u2019t find anything! I don\u2019t think Power BI was designed for that purpose.<\/p>\n\n\n\n<p id=\"259d\">I did however find some exciting functionality in Power BI called DAX. <strong>Data Analysis Expressions (DAX)<\/strong> is a programming language that is used throughout <a href=\"https:\/\/powerbi.microsoft.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">Microsoft Power BI<\/a> for creating calculated columns, measures, and custom tables.<\/p>\n\n\n\n<p id=\"4edb\">I wanted to see if DAX could be used to perform \u201c<strong>a basic<\/strong>\u201d linear regression calculation. In order to complete the \u201c<strong>y = mx + c<\/strong>\u201d equation, we will need to perform a few calculations.<\/p>\n\n\n\n<p id=\"63cd\">Before we get into that there is something important we need to do. Linear regression won\u2019t like the \u201c<strong>date<\/strong>\u201d column on the X-axis. It needs to be numeric. What we will do is add an index field that will start from 0 to plot the X-axis. Power BI has some built in functionality to do this, but it took me some time to find.<\/p>\n\n\n\n<p id=\"5785\">Click on the third icon at the bottom on the left. Select the \u201c<strong>Transform data<\/strong>\u201d menu item drop-down, and select \u201c<strong>Transform data<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-933\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Transform.png\" alt=\"Power BI EODHD Market Data Transform\"><\/p>\n\n\n\n<p>Select the \u201c<strong>Add Column<\/strong>\u201d menu item at the top, then \u201c<strong>Index Column<\/strong>\u201d, then select \u201c<strong>From 0<\/strong>\u201d. This will automatically generate a new column called \u201c<strong>index<\/strong>\u201d that will start from 0. This will form our X-axis.<br><img decoding=\"async\" class=\"wp-image-935\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Index-Column.png\" alt=\"Power BI EODHD Market Data Index Column\"><\/p>\n\n\n\n<p>What will the \u201c<strong>index<\/strong>\u201d represent in our data? Well it could be \u201c<strong>days from 01\/10\/2022<\/strong>\u201d. 0 would be 01\/10\/2022, 1 would be 02\/10\/2022, and so on. When we are done we want to close and apply our transform and return back to the Power BI interface.<br><img decoding=\"async\" class=\"wp-image-936\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Index-represent.png\" alt=\"Power BI EODHD Market Data Index represent\"><\/p>\n\n\n\n<p id=\"e4e7\">Now that we\u2019ve done that we can go back to the middle icon on the left to view our data table.<\/p>\n\n\n\n<p id=\"4de3\">We can start preparing our calculation. If we right-click on our \u201c<strong>MarketData<\/strong>\u201d table, we will receive some menu options. We will want to create two additional columns using the \u201c<strong>Create column<\/strong>\u201d option.<\/p>\n\n\n\n<p id=\"1e36\">The two additional calculated columns will have these formulas:<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">xsq = MarketData[index]^2\n\nxy = MarketData[index]*MarketData[close]<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>You may have realised why I asked you to rename your table to \u201c<strong>MarketData<\/strong>\u201d. It means you can use these two formulas as is to create your two new calculated columns without making any changes. This will mean the formulas are generic and can be applied to any trading data. Obviously if you did not use the same table name or have multiple tables you may want to adjust this. If you have done this correctly, your original table should have the additional \u201c<strong>index<\/strong>\u201d, \u201c<strong>xy<\/strong>\u201d, and \u201c<strong>xsq<\/strong>\u201d fields as below.<br><img decoding=\"async\" class=\"wp-image-940\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-xy-xsq-fields.png\" alt=\"Power BI EODHD Market Data xy xsq fields\"><\/p>\n\n\n\n<p>Once we have added our additional calculated columns, we now need to add several measures. It\u2019s the same process as creating a column. You right-click on the \u201c<strong>MarketData<\/strong>\u201d table and then select \u201c<strong>Create measure<\/strong>\u201d. You will use the formulas I have prepared for you and it will just work. One formula per measure.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">n = COUNTROWS(MarketData)\n\nxsum = SUM(MarketData[index])\n\nysum = SUM(MarketData[close])\n\nxysum = SUM(MarketData[xy])\n\nxsqrsum = SUM(MarketData[xsq])\n\nm (Slope) = \nDIVIDE(\n    [n]*[xysum]-[xsum]*[ysum],\n    [n]*[xsqrsum]-[xsum]^2,\n    0\n)\n\nb (Intercept) = \nDIVIDE(     \n    [ysum]*[xsqrsum]-[xsum]*[xysum],\n    [n]*[xsqrsum]-[xsum]^2,\n    0\n)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>Once again, because our table is called \u201c<strong>MarketData<\/strong>\u201d these formulas will work as is without any changes.<br><img decoding=\"async\" class=\"wp-image-945\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-formulas.png\" alt=\"Power BI EODHD Market Data formulas\"><\/p>\n\n\n\n<p id=\"eb43\">What we want to do now is create our user interface. Click on the top icon under \u201c<strong>Clipboard<\/strong>\u201d on the left to go back to the user interface design. Previously we used a line graph which was the on the second row on the left. We now want to use a scattergraph which is on the third row, third from the left.<\/p>\n\n\n\n<p id=\"ce14\">Expand the \u201c<strong>Fields<\/strong>\u201d side panel and drag the \u201c<strong>index<\/strong>\u201d field we created to the X-axis, and drag the \u201c<strong>adjusted_close<\/strong>\u201d to the Y-axis. The \u201c<strong>adjusted_close<\/strong>\u201d will be automatically summarised and we don\u2019t want this. Use the drop-down arrow for the Y-axis and select \u201c<strong>Don\u2019t summarise<\/strong>\u201d as below. You may also want to increase the size of the visualisation to use the full space.<br><img decoding=\"async\" class=\"wp-image-947\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-adjusted-close.png\" alt=\"Power BI EODHD Market Data adjusted close\"><\/p>\n\n\n\n<p>What we will want to do now is click on the magnifying class under Visualisations like we did with the forecasting example. We selected \u201c<strong>Trend line<\/strong>\u201d previously, but this time we want to select \u201c<strong>Trend line<\/strong>\u201d. You can leave the default values, but make sure you toggle it on. If all has gone to plan it should look something like this.<br><img decoding=\"async\" class=\"wp-image-949\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Trend-line.png\" alt=\"Power BI EODHD Market Data Trend line\"><\/p>\n\n\n\n<p>The next step is we want to create a nice way for a user to dynamically request their prediction. The way we do this is to go to the \u201c<strong>Modeling<\/strong>\u201d menu item at the top and then select \u201c<strong>New parameter What if<\/strong>\u201d. I\u2019ve called mine \u201c<strong>x (Days Since)<\/strong>\u201d. If you use the same as me, then you won\u2019t need to adjust the DAX formula I will provide next. I set a minimum of 80 because there is 80 days of data and I am only interesting in predicting a future price. I set 100 as the max as I didn\u2019t want to go overboard \ud83d\ude42<br><img decoding=\"async\" class=\"wp-image-950\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Modeling.png\" alt=\"Power BI EODHD Market Data Modeling\"><\/p>\n\n\n\n<p>We will then want to go back to our data table section. It\u2019s the same place we created our calculated columns and measures. We will want to create an additional measure called, \u201c<strong>Predicted Price<\/strong>\u201d.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code lang=\"python\" class=\"language-python\">Predicted Price = \n([m (Slope)]*\n'x (Days Since)'[x (Days Since) Value]+\n[b (Intercept)]\n)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p id=\"e16c\">This is why I said setting the same \u201c<strong>What if<\/strong>\u201d parameter name will save you some time. If you used something else, you will need to update the DAX formula above.<\/p>\n\n\n\n<p id=\"fee9\">Once we have done that we can jump back to our user interface design. We are going to want to add something new now. It\u2019s the label icon on the forth row, third from the left. It\u2019s the icon with \u201c<strong>123<\/strong>\u201d on it. Add that to our user interface and drag the \u201c<strong>Predicated Price<\/strong>\u201d measure into the \u201c<strong>Fields<\/strong>\u201d.<br><img decoding=\"async\" class=\"wp-image-952\" style=\"width: 400px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Predicated-Price-Fields.png\" alt=\"Power BI EODHD Market Data Predicated Price Fields\"><\/p>\n\n\n\n<p>What will happen now is if we drag our \u201c<strong>x (Days Since)<\/strong>\u201d slider left and right we will see the \u201c<strong>Predicted Price<\/strong>\u201d automatically update. For example, I dragged the slider to 85, which would 5 days in the future as 80 is the current max. That is saying based on our current trend the price should be <strong>$243.06<\/strong>.<br><img decoding=\"async\" class=\"wp-image-954\" style=\"width: 900px;\" src=\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-EODHD-Market-Data-Predicted-Price.png\" alt=\"Power BI EODHD Market Data Predicted Price\"><\/p>\n\n\n\n<p>I hope you have found this article useful if you have not used <a href=\"https:\/\/powerbi.microsoft.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Power BI<\/a> before, or maybe not for this purpose. With the built-in forecasting example and the linear regression DAX example, you should be more comfortable navigating around yourself now and creating great dashboards. Please don\u2019t forget to clap for the article if learnt something new.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power BI for financial and trading data analysis using financial trading data from EOD Historical Data (EODHD APIs) data API If you want to learn how to install the EODHD Power Bi Connector for Financial Data APIs and activate your API key, we recommend to start with exploring of our Documentation for it. Welcome back [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[62],"tags":[],"coding-language":[],"ready-to-go-solution":[60],"qualification":[31,33],"financial-apis-category":[36],"financial-apis-manuals":[39],"class_list":["post-869","post","type-post","status-publish","format-standard","hentry","category-stocks-price-prediction-examples","ready-to-go-solution-power-bi-connector","qualification-experienced","qualification-newbie","financial-apis-category-stock-market-prices","financial-apis-manuals-end-of-day"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Stocks Price Predictions in Power BI | EODHD APIs Academy<\/title>\n<meta name=\"description\" content=\"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stocks Price Predictions in Power BI\" \/>\n<meta property=\"og:description\" content=\"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\" \/>\n<meta property=\"og:site_name\" content=\"Financial Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-28T18:52:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-05T12:43:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Price-Predictions-in-Power-BI.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Whittle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Whittle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\"},\"author\":{\"name\":\"Michael Whittle\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/50784c270b6267df5969514d80d510ad\"},\"headline\":\"Stocks Price Predictions in Power BI\",\"datePublished\":\"2022-10-28T18:52:26+00:00\",\"dateModified\":\"2025-02-05T12:43:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\"},\"wordCount\":2709,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png\",\"articleSection\":[\"Stocks Price Predictions Examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\",\"name\":\"Stocks Price Predictions in Power BI | EODHD APIs Academy\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png\",\"datePublished\":\"2022-10-28T18:52:26+00:00\",\"dateModified\":\"2025-02-05T12:43:14+00:00\",\"description\":\"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage\",\"url\":\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png\",\"contentUrl\":\"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-academy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stocks Price Predictions in Power BI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"name\":\"Financial APIs Academy | EODHD\",\"description\":\"Financial Stock Market Academy\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/50784c270b6267df5969514d80d510ad\",\"name\":\"Michael Whittle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5076af85c7ee0445454257247cad4970ae8cf5d7d4940d2b32c521f51c0a0f5a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5076af85c7ee0445454257247cad4970ae8cf5d7d4940d2b32c521f51c0a0f5a?s=96&d=mm&r=g\",\"caption\":\"Michael Whittle\"},\"description\":\"Solution architect, developer, and analyst with over 20+ years experience (TOP author on Medium).\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/author\/michaelwhittle\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Stocks Price Predictions in Power BI | EODHD APIs Academy","description":"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi","og_locale":"en_US","og_type":"article","og_title":"Stocks Price Predictions in Power BI","og_description":"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI","og_url":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi","og_site_name":"Financial Academy","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2022-10-28T18:52:26+00:00","article_modified_time":"2025-02-05T12:43:14+00:00","og_image":[{"width":720,"height":480,"url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Price-Predictions-in-Power-BI.jpeg","type":"image\/jpeg"}],"author":"Michael Whittle","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"Michael Whittle","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi"},"author":{"name":"Michael Whittle","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/50784c270b6267df5969514d80d510ad"},"headline":"Stocks Price Predictions in Power BI","datePublished":"2022-10-28T18:52:26+00:00","dateModified":"2025-02-05T12:43:14+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi"},"wordCount":2709,"publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage"},"thumbnailUrl":"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png","articleSection":["Stocks Price Predictions Examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi","url":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi","name":"Stocks Price Predictions in Power BI | EODHD APIs Academy","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage"},"thumbnailUrl":"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png","datePublished":"2022-10-28T18:52:26+00:00","dateModified":"2025-02-05T12:43:14+00:00","description":"Using financial trading data from EOD Historical Data (EODHD APIs) for Stocks Price Predictions in Power BI","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#primaryimage","url":"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png","contentUrl":"https:\/\/eodhistoricaldata.com\/financial-academy\/wp-content\/uploads\/2022\/10\/Power-BI-Options-and-settings.png"},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-price-prediction-examples\/price-predictions-in-power-bi#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-academy\/"},{"@type":"ListItem","position":2,"name":"Stocks Price Predictions in Power BI"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-academy\/#website","url":"https:\/\/eodhd.com\/financial-academy\/","name":"Financial APIs Academy | EODHD","description":"Financial Stock Market Academy","publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-academy\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-academy\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/50784c270b6267df5969514d80d510ad","name":"Michael Whittle","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5076af85c7ee0445454257247cad4970ae8cf5d7d4940d2b32c521f51c0a0f5a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5076af85c7ee0445454257247cad4970ae8cf5d7d4940d2b32c521f51c0a0f5a?s=96&d=mm&r=g","caption":"Michael Whittle"},"description":"Solution architect, developer, and analyst with over 20+ years experience (TOP author on Medium).","url":"https:\/\/eodhd.com\/financial-academy\/author\/michaelwhittle"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pdOdVT-e1","jetpack_sharing_enabled":true,"acf":[],"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":2,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"predecessor-version":[{"id":6265,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/869\/revisions\/6265"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/tags?post=869"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/coding-language?post=869"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/ready-to-go-solution?post=869"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/qualification?post=869"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-category?post=869"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-manuals?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}