Giter Club home page Giter Club logo

excel-vba-dashboards's Introduction

Excel-VBA-Dashboard

This is a dynamic dashboard that analyzes the performance of the stock market in many countries of the world , since the begining of the year 2022 , comparing it to the year 2021 .

There's some work-around that's behind the first worksheet ( The dataset is not collected directly like that ) . The process of preparing data and merging it the first time or each time I want to update the dataset is tidious ( I have 11 indices thus 11 separate worksheets ). So I created some queries to automate the process: The only manual job will be downloading the price series of each index . Once downloaded , here's how the query works : there are many indices that have the same date index series( MSCI indices) . These are automatically merged together . However , those familiar with power query know that many queries cannot be merged all at a time ( you should merge pair by pair ) . The idea is therefore , to append these indices all at a time ( this is indeed possible with power query ) then pivot them on the source column , to obtain a merge instead of an append --> Problem solved! However , this only works for series that have a common column in all values ( case of the MSCI indices) . For the rest of the indices ( which aren't many ) , the merge is done pair by pair . However , this is going to be done once and for all . The next time I update the dataset , as long as I'm working with queries , I can just change the source and the steps of the query will automatically apply .

Another thing to note is that the dashboard updates automatically when I update the dataset ( by clicking on the Activate button ) , hence the 'dynamic' character . The problem that I encountered with this is that you CANNOT make a table expand when another table does , without VBA code or power query . Using queries here does not solve the problem because the tables I'm working on have formulas that depend on formulas in the other tables . So I added VBA code : Note that this code consists of only adding dates to each table and the other columns ( of each table ) will automatically update , without any code required( because we're working with TABLES ) .

One final thing is that when you download the xlsm file and open it , you'll get a message of this kind : ' security risk microsoft has blocked macros from running because the source of this file is untrusted' ( this message pops up whenever you open an external file that contains VBA code ) , and the functionalities of the dashboard will obviously not work . To fix this , close the file --> right click on the file --> select properties --> tick unblocked ( option that shows at the bottom of the box ) , then reopen the file and click enable editing .

Below is just a screenshot of the dashhboard worksheet : Dashboard screenshot

excel-vba-dashboards's People

Contributors

tasnimbenhamed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.