Currently I have a grouped bar chart with a value on the y-axis (total guest nights in an area), and the months on the x-axis.
I have 2 series as of now: 2020 and 2019 - they are quite close to each other for each months so that you see that these relate to one another.
NOW I wanted to break each of these series into a more detailed aggregate.
The total guest nights each bar represent I now want the bar to aggregate the value for each market - whether domestic or abroad (so 2 components should now constitute the earlier total sum)
My idea doing this was (which I know work if I had just 1 year - e.g. 2019), is to put the e.g. abroad as the total amount and the domestic as domestic - then just use 100% series overlap.
BUT if I do this now - of course this happens to both my series related to e.g. 2019 but also for 2020 (which I do not want)..
I tried making use of the secondary y-axis for the 2020 series - but that didn't help at all - Excel still relate series overlap (on the x-axis) the same regardless of me making use of the 2nd-y-axis.
Do you understand my question?
I essence I want a stacked bar chart for 2 series (or in practicality 4).
Thanks!
I am trying to trend the occurrence of a system event in Excel. I've attached a screen shot showing the pretty simple data that I'm working with.
The spreadsheet lists the times of the event (Column A) for a two week period and I've used a ceiling formula to group those events into 15 minute increments (Column B). Using a pivot table and chart, it's pretty simple to then take that data and graph the events into a line chart that shows the 15 minute increment time, and the count of the events in that 15 minute period.
Now I'd like to take subsets of that data and compare them. For example I'd like to compare Friday Saturday Sunday of last week Friday Saturday and Sunday of this week. So far, the only way I found to achieve this is to create duplicate pivot tables (Columns E, F and H,I), filter each table by the days I want to compare (25, 26, and 27 in one table and 1, 2 and 3 in the second), and then visually compare them (the Two charts).
But what I'd really like to do is to combine both series into one chart as a stacked line graph. I thought that would be pretty simple, but since the dates are so very dissimilar, I always wind up getting a single line or duplicate data, or totally off the wall results.
I've gotten kinda close by converting the row labels in to a custom DDD HH:MM format. That lists the Dates as (For Oct 25th)
Fri 00:15 11
Fri 00:30 1
Fri 00:45 4
Fri 01:00 3
Fri 01:15 6
Etc.
And (For Nov 1st)
Fri 00:15 7
Fri 00:30 1
Fri 00:45 2
Fri 01:00 1
Fri 01:30 2
Etc
Now I have something I can join on (Friday 00:15, 00:30, 00:45, etc is in both charts)
But the problem is, the two series often don't have the same Labels. For example the data for Nov 1 is missing 01:15,01:45 and 02:00 because no events occurred at those times. Same problem for the Oct 25th's data which is also missing 02:00 in addition to all increments between 02:30 and 03:45.
I tried just manually inserting the missing times in both charts but that quickly became a very complex and error prone chore.
So the question is: Is there a way to get excel to automatically fill in the missing time slots or am I completely off base in the way I'm trying to do this?
OK.. that was two questions :)
Thanks so much for your help!
I've been working on this for awhile and can't seem to find an appropriate way to code this.
Goal: Take a list of monthly returns that currently spans over three years (this is an automated list so it will keep adding months) and find MTD, QTD, & YTD using function so I can automate the process.
Problem: I've tried the OFFSET function, different versions of COUNT, IF statements and can't find a way to properly code the function.
NOTE: this is for stock data/earnings report
Just to clarify, I know how to do this manually, but want to automate the process :) Would be more than happy to use VBA but would like to stick to a simple function if possible...
I'd be more than happy to email the WS to someone. Thanks so much!!
If you want to keep it simple and avoid vba here is a suggestion
The manner in which the data sheet is presented matters.
I assume months go down, with there only being 1 column for 'monthly returns'?
On a separate area/worksheet, set up the months with a value for what they are in the column next to them. Ie
Jan 1
Feb 2
Mar 3
Apr 4
...
Dec 12
then have a drop down where you can select what month it is.
so if it is Jul, you can select Jul.
From here, do a vlookup/indexmatch to pull the number for the month through, so Jul would be 7
From here the MTD is easy.
Do an offset from the beginning of the year to the current month
=offset ([start point],[month number],[columns])
=OFFSET($D$1,$C$21,0)
start point will be one row above Jan, that way when Jan is chosen it will fall onto Jan.
Month number you will get from what was said earlier
and columns will depend on how you place it
YTD, you will do the same as above but have a sum
so
=sum(B3:offset ([start point],[month number],[columns]))
=SUM(D2:OFFSET($D$1,C21,0))
QTD would be easiest just plotting the sums as it would never change
So set out Q1,Q2,Q3 and Q4 as prefixed ones. Then lookup to them.
However, if you want to see the most recent quarter by a formula. On the month number list add a new column which says what quarter it is. Then
Jan 1 1
Feb 2 1
Mar 3 1
Apr 4 2
...
Dec 12 4
It should the read off a formula like so
=SUM(
OFFSET([start point],(INDEX([month number table],MATCH([month],[month list],0),3)-1)*3,0):
OFFSET([start point],INDEX(month number table],MATCH([month],[month list],0),2),0))
=SUM(
OFFSET($D$2,(INDEX($F$2:$H$13,MATCH($C$20,$F$2:$F$13,0),3)-1)*3,0):
OFFSET($D$1,INDEX($F$2:$H$13,MATCH($C$20,$F$2:$F$13,0),2),0)
)
What you are doing is to find the month at the beginning of the quarter and then sum to the current month.
Regarding this bit at the end
OFFSET([start point],(INDEX([month number table],MATCH([month],[month list],0),3)-1)*3,0):
You are finding the month quarter index number(1,2,3,4) and multiplying it by three. The reason you want to take away one before multiplying by three is because you want the start point of the quarter, thus in jan to march, this will be 0, and then you add a row to get the start point being Jan.
In Oct to Dec this will be (4-1) = 3. 3x3 = 9 which will be Oct to make Oct being the start point. Amend as need be.
The yellow section is what your actual information is presented as
The green section is your lookup area
The Blue area is information you are looking for with the lower bit reading from the lookup
I have 7 different measurement points on which is temperature measured for every hour (timestamp). Like these pic down.
I want graph similar like these.
Data table:
timestamp m1_temp m1_dist m2_dist m2_temp
Mar 9, 2017 12:00:00 AM 51.72 20.00 10.00 41.72
Mar 9, 2017 1:00:00 AM 48.73 20.00 10.00 38.73
Mar 9, 2017 2:00:00 AM 43.51 20.00 10.00 33.51
I get:
So problem is now:
I need to pick timestamp range (button or just calendar with time) and see animation (not real animation, it would look like that because data ranges would change for example every 2 seconds) on chart trough that time. It would be great to see chart title as timestamp.
Maybe connect points with line, it would be more visible to the viewer.
Thanks in advance
Currently, I don't think it's possible to have timelapse animation in Power BI visuals.
There is an idea related to this that you can vote on though:
Animation for ALL!
Without animation, there are a couple possible ways to attempt a similar thing. Either use a slicer for time or else show all times at once.
To do this, your data will need to be formatted a bit differently like this:
I have data that looks as shown below
The blue line is for 2016 and the orange line is for 2017.
The X-Axis represents Days which are equivalent days between years. So for example day 20 might be 5/1/17 (for the 2017 year) and 5/2/16 (for the 2016 year).
The Y-Axis is the number of hours enrolled and each day it increases until around day 130 when the registration system closes.
I have historical data for 5 years but I want to make a forecast where the 2017 curve takes the same shape as the previous year's curve.
I have tried the Forecasting tool in Excel 2016 in two ways:
1. Forecast just on the 2017 data - not correct because it has no way to take the shape of historical data into account.
2. I lined up 2016 and 2017 in the same column then did the forecast but it was still completely wrong.
I tried also charting the curves and using linear, logistic, polynomial but none of thse approximate my actual curve.