Dynamic 3 years graph in Power BI as per incremental year - powerbi-desktop

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:

Related

PivotTable showing the Top 5 Sales Representatives per Month

I have an Excel data that shows the Sales of each of the Sales Reps. So I want to see the total for each rep per month which is easily doable with a PivotTable. Now I want the Pivot Table to only show the Top 5 per month so say I have 2 months in the coverage, I will see 10 names in total.
The Top filter in Pivot Tables computes for the Top for the entire data set and not for each category. Or am I missing something? Is it possible?
Thanks a lot for your responses.
You can make a measure if you connect your data to the datemodel and use PowerPivot
Rigth click on table to add Measure
That will enable you to use DAX i Excel (used in Power BI) And by using DAX you can make a top 5 per categori
inspiration: https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/

Plot time series similar to this ggplot export in Power BI

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.

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

Pie chart in SSRS

I have a report with 2 pie charts, giving sales data for product groups. Running a dataset from an OLAP cube.
I want to be able to select 2 different dates for each chart.
Example; Someone wants to compare November sales to the previous month. So one chart to display October, one to display November. Or they might want to see how Jan/Feb/Mar compare to Apr/May/Jun.
Can this be done from the same dataset, or do I need to point each chart to a separate dataset?
If the dataset returns the data for both months, you could add filters to each chart to show the appropriate one. However, it sounds like you'd want this to be more dynamic.
I would suggest creating two separate datasets, each with a month parameter. This will allow the user to select any combination of two months. The charts would simply point to their respective dataset. You shouldn't incur a noticeable performance hit either way.

Analyzing 3 Dimensional data in MS Excel

Need help
I have to analyze traffic violations data with respect to place, month, and type of violation in MS Excel.
I can plot graph of Month vs Count of Violation in a place that gives me place where maximum violations took place in a month
and Month vs Count of Type of Violation that tells me which violation took place maximum in a month.
But the data I want is, How to get place of violation where a certain type of violation took place maximum time in a month. This data will allow me to plan to reduce violations and improve safety.
inshort:
I can make 2d Graph of Place of Violation(50 Places) vs Month
I can make 2d Graph of Type of Violation(15 types) vs Month
But I want a 3d Graph in MS Excel that supports Place of Violation vs Type of Violation vs Month.
Can you tell me how to achieve this? if there is some method to reduce 3d data into 2d, do let me know, I can try for that. Thanks.
Adding More info as per Comment
Lets say I have table like this
Now I can plot a 2d Bar Graph Between Month vs Count of Violation Type to determine that what violations has taken place in a month and with what count.
Another Bar graph would be Month vs Count of Place of Violation to get at what places most violations have been taken place in whole month.
But I want a 3 Column comparison graph in which I want to determine, in a month, what count of violation type has happened across different places.
like a 3d array
graph[month][place][count of specific violation type]
I hope that makes it clear, if not, let me know so I can paste the actual graphs.
Thanks
3D graphs are really hard for people to read and interpret. You might consider making a series of graphs by month (1 graph per month) if you really want to highlight monthly changes. If you just want to find the troublespots, you could graph place by violation and be done with it.
But if you are sold on a 3D graph, you could look at pivottables and pivotcharts. I graphed your dataset using a PivotTable with Date on the Axis Field and Violation and Place on the legend field and Count of Date for the Values. I then selected the Date column in my PivotTable and chose Group Selection from PivotTable Tools > Options in the ribbon, and grouped by month.
The end result was this monstrosity, but it sounds like that might be what you are looking for. I included the PivotTable chart and its options so you could see the setup.
Hope that helps!

Resources