Limit range of trendline to the first couple of bars in clustered column chart - bar-chart

I'm trying to limit the trendline online to the first 2 bars of a clustered column chart.
The background being, say this is the 2nd week of January and I would like to show a trend between actual and forecasted hours. For the first two weeks of January where I have actual hours the trendline does a good job. However for the 2nd half of January, the trendline does not accurately reflect the trend as it only shows the forecasted hours not the actual hours.
In our business we forecast only the hardcore committed hours, typically 60% of the time dedicated to inflexible/predictable standard tasks. The rest, the actual hours are then added on top with variable, unforeseen tasks. Thus, I would like to make the trendline stop e.g. after the first 2 weeks, since I only have the actual hours/percentage of time spent for those 1st two weeks.
I have tried to achieve this by right clicking on the chart and clicking 'select data' but that does not work.
Any suggestions welcome!

Its not completely clear what you're trying to do. But maybe your just missing a simple point here:
Instead of displaying trendline on the forcast serie, you may just need to display it on the actuals serie. Here is a visual of the difference you would have with moving average:
... Remember, if it solves your issue, kindly approve this answer. You didn't do it for Zolvas answer which obviously solved your problem. It will also give points to you too.

Related

How to create a table of "Not used time" in spotfire

User wants to see a report of when resources are NOT being used during the work week on average.
Available to me I have a reservations table along these lines:
table
Attached is the picture of how the user would like the data represented. example graph
I think my issue lays in getting the data in the right format, how can I take a reservations table and inverse it so to show all available time in-between two reservations.
I was able to get a Bar graph that showed the average availability of the days that the resource was booked, but it didn't consider days that there was no reservation information, it also did not account for situations where the user had booked for more then one day.
Have you tried making a calculated column?
This worked for me:
1440 - Sum([Duration]) OVER ([StartDateTime])
1440 is the amount of minutes in a day. It subtracts the total amount of 'busy' time in each day from the total minutes in the day.
It is then easy to make a bar chart from this column.
This worked in my testing, but it might run into issues if you put it into practice. Keep me updated!
Table with calculated column, and barchart.

Dynamically compare columns in a matrix ssrs

I've never done this for a matrix and it's going a little over my head. Trying to make a sales report, and I can do the matrix just fine. The part I'm having trouble with and I haven't been able to find a direct answer for through googling is how to get a specific value out of the matrix.
Here is a picture of it:
Report
What I need is on the far right where it says total at the top. There I need to do another break out (dynamically would be preferred but not required) the first Column would be %change of 2013 -> 2014. Then of course then next would be 2014 to 2015 and so on.
Here is the design view if it helps: Design View
So the sum total of the year compared to the year previous.
I was trying to use iif and max but I think i'm just confusing myself but the expression i have in there is:
=Sum(iif(Max(Fields!Year.Value)=Fields!Year.Value,Fields!glamt.Value,1))
Just from my testing I got no idea what values it's pulling for that.
Something I've used before is to create a variable of the SUM of previous period, in you case year. So =SUM(IIF(Fields!Year.Value = "2017",Fields!glamt.Value,0) added into the Variables section of the report.
Then in a new column within the year grouping, you add your comparison formula;
=(SUM(glamt)-Variables!sum2017.Value) / Variables!sum2017.Value * 100.00
This gives you the percentage upshift/downshift, but you get the idea if you want the actual figure of increase/decrease in sales etc.
One of the downsides of this approach is that the variables will need to be added manually and you may have a large number depending on the number of previous periods you want to compare but should suffice for say the last 5 years.

How to drag formulas down every night at midnight?

I know little to nothing about code so please bear with me. I am just wondering if it is possible to use google scripts to automatically pull down formulas every night at midnight so I don't have to. I have looked online and don't yet have the knowledge to adapt various ideas to my task. Here is what I need, as best I can describe at the moment:
In sheet (this sheet) start at cell C33 and go down until you identify the last value in that continuous range of data. This is equivalent to hitting control+downarrow. Then from that bottom-most cell, for instance, C191, identify the last value to the right (equivalent to hitting control+rightarrow). So now your range is C191:Z191. Once you have identified that range, drag it down. I am dragging down formulas and I want them to stay as formulas, not be pasted as values.
I just want it to run automatically every night at midnight if possible. That's it except for 1 pretty annoying exception. On the first day of the month still drag everything down as normally but do NOT drag down the second cell to the right (which would be in column E). So for instance, you would then drag down C191:D191 and F191:Z191
Sorry for basically asking for a complete answer, but I figured I may as well before spending however many weeks learning the requesit skills to understand and write this script.

Table Design for my Database

I am in the process of designing a very simple system for keeping track of a shifts worked by the sales team. Although i'm still designing and not done yet, I later realized I left out one important detail that I'll get into.
Some quick background first:
Each shift consists of how long the shift was (hours worked), whether it was the morning, afternoon, or night shift (or some combination), how much in sales were made for that shift, and how many tips the person made that day. I also keep track of things like whether it was cash or credit tips you received for doing your job well.
So one extra thing that happens is the sales team gets paid by the hour. For reports and running totals I am currently just calculating your income for that shift as pay rate (from job Position table) multiplied by the hours you worked, but I forgot the fact they could get raises! This means that if you get a raise, your income would magically increase (historically speaking)! I might've been making $10 an hour last year, and now $15 an hour this year - So the reports would be wrong.
My initial thought was to simply add a new column in my 'shift' table called HourlyRate, and that would be whatever the current hourly rate was at that moment in time. $10, $15, etc. Then I can just use this rate when i'm performing calculations
Do you all think this is an acceptable solution? Would it be weird to have a few hundred rows of sales all with the exact same hourly rate column for the same sales worker?
Thanks so much for your help!

I want to display clients based on a five day week on a form (All 5 days at once)

I've got a list of clients who have certain tasks done on a weekly basis. Currently we use an excel spreadsheet that keeps track of this but I am in the works of automating it. In the process of moving this into our MS Access system, I have created a form that does this for a single day and can display a report that outputs in the manner I want the form to look but I cannot get the form to look like that so the user can see all the days of the week for all the clients at once. I suppose I could do this in a subform per client but it seems a bit messy...
The spreadsheet we currently use has Column headers that state the Date and the rows are sort of grouped up by client that are for the number of times the given action occured, the timestamp of when it happened and other various data that happened on that day.
For the life of me I cannot think of a way to view all the records for that given week, grouped in detail per client all at once on the form. I can think of some ways to do this through VBA with recordsets but would like to know is there is a simpler way to do this that is easier to maintain.
Is there a way to do this with the use of a query and a few small scale tricks that don't involve storing recordsets? Keep in mind that this is for Access 2000, I only wish we would upgrade to '03.
Why not use five subforms? One for today, another for tomorrow, etc for
the next five business days. – Tony Toews Sep 12 at 20:57
That is the answer I've gone with and it works BEAUTIFULLY with the setup we are using. Thanks for the wonderful idea!