Plot time series similar to this ggplot export in Power BI - excel

Im trying to generate a graph in PowerBI with this similar concept:
I am exploring store visitors with COVID lock down periods. I currently have an Excel spreadsheet with sequential dates, sum of daily store transactions and a COVID column where periods of lockdown are equivalent to 1 and those that are not with a 0. I tried using a line and clustered column chart with lines representing store transactions and columns representing the lockdown periods but it was visually too busy since the columns were also separated by day. Any suggestions?

It isn't likely that there is an existing Power BI visual that does exactly the format you're looking for, which leaves you with a couple of options:
Use an R Visual Script within Power BI.
Create your own Power BI Custom Visual.

Related

Many to many relationship in Power Pivot (Excel data model) - Replicate Power BI behavior in Excel

In power BI, I can use a calendar with LTM (last 12 months) and link it to a fact table (Sales for example). There are multiple transactions in the Sales table on the same date (to multiple customers) and there are multiple Periods linked to the same date (e.g. LTM and FY2022).
The relationship is many to many and it's perfectly managed with power BI
Note the total is different than the sum of the single rows (correctly)
I would like to replicate the same in Power Pivot, but I can't find a good solution.
Any suggestions?
Thanks!
You can get rid of the many-to-many by using a proper date table.
In Power Pivot add a new date table, and add columns for FiscalYear, and IsLastTwelveMonths, with DAX calculated columns.

Dynamic 3 years graph in Power BI as per incremental year

How can I create dynamic graph lines in Power BI which shows only three graph lines?
I used filters, but it will not work for every future year. As in, currently restricted it between 2019-2021. But how this can be handled dynamically for year 2022, for every incremental year?
You can use a visual level filter as shown below to achieve your desired output. This will always show the last 3 years' data in the chart:

Calculate daily increase/decrease in COVID-19 cases / deaths

I was trying to plot some reports for Covid-19 cases around the Globe, using Excel and Power BI. With Power BI is easier and fancier to do definitely, but I need an Excel file or calculation that makes sense - similar to the PBI. What I actually wanted is to calculate the daily increase in new cases (with %) and also death rate but per day, or total death by day and so on..
I did some calculations (% of column total and I calculated one field to get death rate%) here using Pivot tables but not sure how to do daily increase/decrease? Did anyone get an idea for additional calculations?
This is copied from PBI (calculations) which I wanna have similar in Excel - but I am not sure If I can calculate it properly (last 2 pictures).
The data source from the input data is here:
https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide.xlsx
You need an extra column for the result you want (e.g. daily increase/decrease), then you can plot either the waterfall chart, or using techniques similar to
https://www.extendoffice.com/documents/excel/5945-excel-chart-display-percentage-change.html

Excel Timeseries Forecasting with Seasonality

I am trying to create a forecast using a monthly timeseries data set of marketing expenses for a fictional company. The data looks something like this:
Using linear regression to forecast future sales, I get the following result:
My problem lies with the seasonality of the marketing expenses (higher in the summer months for instance). I would ideally like to calculate to forecasted values of future months including seasonality. I read somewhere about ARIMA forecasting, but am really searching for some best ideas on how to accomplish the task.
To be clear, I do not JUST want a chart and trendline, but the data to support it too.
Any help would be much appreciated!
You can do that easily using Excel (2016) Forecast tool by first selecting your data, then clicking on:
Data -> Forecast Sheet -> Options -> Set Manually (under Seasonality)
You can also play with the options. Once you click on "Create", Excel will generate a graph, and a table with relevant data.
Alternatively, you can also create a binary variable for each season, and calculate a multiple regression for the Marketing expenses controlling for time, and each of the binary variables for the seasons but one (which is the reference group). You could either use excel analytical tool, or any other statistical software.

Dynamic Excel 2007 Dashboard Without VBA

Morning guys,
I'm hoping that one (or more) of you can help me.
I have been tasked with creating a dashboard which needs to display trends and have a dynamic frontsheet, preferably with drop-down or data forms so as to update a chart / graph.
The information itself is incredibly limited - the scope of the document is tracking a value (0-4) assigned to a staff member's ability to fulfill a task, e.g. 'Quotes - 4', 'Cancellation - 2' and so on. So the metrics are limited to:
Month (a worksheet for each month of the year and one front for the dashboard)
Team (Presently 6 teams, but this is likely to increase over time, so hopefully the solution facilitates relatively easy incorporation of new teams)
Employee (Self explanatory)
Task (Presently 25, but as above - subject to change)
Score (the 0-4 value referred to above)
So as you can see, it's a very simple dataset. The sheets are presently set out with six grids with data validation lists for determining Team and Score (dropdowns for easy data input), with the Task being pre-written and the employee entered manually by the user.
What I'm hoping to do is have a frontsheet with dynamic tables that update accordingly when a dropdown and/or data form is changed. The key focus is on getting the staff members up to 4s for all tasks, so ultimately, the charts will display trends for the individual teams (one chart for each team - 6 charts) on a month-on-month basis and also a dynamic table which can reflect specific information (e.g. employee performance on a specific month, or number of '3s' achieved by a specific team to date).
I've read a reasonable amount on this, but seem to have overwhelmed myself with the sheer amount of options. However, the options can be narrowed given that I'm working on a large corporate network that doesn't really facilitate downloads (so add-ins or anything extraneous to Excel 2007 'out-the-box' isn't an option) and preferably without the use of VBA (1. I'm quite a novice insofar as VBA, 2. Easy distribution and maintainence of the document might be marred by VBA?), though I appreciate that my requirements may dictate VBA to be essential.
Does anyone have any suggestions around how best to proceed creation of this dashboard?
Any and all help is appreciated and I apologise as a newbie if I've contravened any conventions around forum etiquette.
Thank you all for your time,
Rob
There are a couple of things that you need to consider in a task such as this:
a) what sort of output do you require?
b) how are you going to manage the data?
For a) I'd separate it further into the basics of what's required (time series charts of employee and/or team performances [how will team performance be measured? average, % achieving 4, or ?]) and then the bells and whistles of drop-downs. Focus on the basics, the other stuff first the whizzy stuff can come later. Getting b) right is vital - you are going to be extracting subsets of the data to build the charts you want to display. Get b) wrong and you'll just create a horrible task for yourself.
In your position I would consider re-organising the data into the form of a table. Excel's help defines what is meant by a table, but in essence it is a list of your observations where each observation simply comprises the score for a particular month/team/employee/task combination (so each observation comprises 5 values). The observations are arranged as successive rows of the table with the first row being the header row which will contain suitable labels such as "Month", "Team", "Employee", "Task", "Score". The real advantage of using a table such as this is that Excel provides a heap of in-built facilities for manipulating them - look up the help for Sort and Filter on the Data tab. In your case there is an even more compelling reason for using a table - you can use the Pivot Table and Pivot Chart facilities for analysing and displaying the data. If you have not used these before some time and effort spent learning about them will pay dividends. Once your data is organised and you know how to use Pivot Tables and Charts you should be able to prototype sum output very quickly.
If you do decide to organise your data as a table you can still keep a nice friendly looking grid of 6 team "tables" (different from Excel's use of the word) as a data entry facility to enter each month's scores by employee and task. You will need to find a way of getting each month's data from the data entry "tables" to the main data table. (Easiest way would be to use a bit of spare worksheet under the data entry tables to reproduce the entered data as a series of observation rows and then use Paste Special Values to append these rows to the end of the main table of observations. You can use VBA to automate the copy/paste operation if you want, you just need to figure out a way of identifying how may observations are currently in the main table and precisely where you want the paste to end up - COUNT() or COUNTA() is a useful friend here). Main problem to avoid (whether automated or not) is to avoid appending same entered data more than once to main data table.
Have a look at http://www.mediafire.com/download/x64swkp689k10a1/DataEntrytoTable.xlsx for a simple example of some of the above thoughts

Resources