I work in the planning function for a contact centre and we've recently updated our WFM (Verint 11 to Verint 15) and previously used Cognos which has now been replaced with SSRS. The problem I'm having is I'm trying to create an Ad Hoc report which will give the Daily Call Volume, Grade of Service and AHT. The report runs at an interval level and sums volumes at a daily level no problem, but the Grade of Service simply sums each interval as well rather than an aggregate view, has anyone else managed to solve this?
I've tried writing a sumproduct function, I've tried runningvalue but nothing works so far. I know the correct GoS for the day is 40, but getting this from SSRS is proving a challenge
Related
MS Office 365 ProPlus, Access 2007 - 2016
I am trying to build a very simple chart which plots a single value over time. The data is coming from a saved query and looks something like this...
SELECT tot_effort_left, when_captured
FROM BurnDownMetrics
WHERE project = proj and domain = dom;
When I run the query, it asks for the "proj" and the "dom", which I enter, and the table/report it generates is correct.
tot_effort_left when_captured
300.0 4/10/2018
270.0 5/10/2018
230.0 6/10/2018
190.0 7/10/2018
100.0 8/10/2018
Now, for the report...
In the chart settings I select "Queries" and identify the stored query from the list provided.
For the "Axis" I select "when_captured" and for the "Values (Y axis)" I select "tot_effort_left (Sum)" and a chart pops up. Looks good but it appears to be using the search criteria I specified when developing the query. It does not ask me for the values. So I'm thinking it's just getting some data so that I can continue to develop the chart/report and when I actually go to run it, it'll ask then.
Another disconcerting thing is that I really don't want it so sum anything, just plot the data that the query returns.. So I change it to "tot_effort_left (None)" and the nice chart that I had disappeared. I go back to "tot_effort_left (Sum)" and the nice chart is restored. So I'm guesing/hoping that the "sum" won't actually do anything if there is nothing to sum. I save the report (fingers crossed).
Now, I double click the report. It does not run the query, it does not ask me for the "proj" and/or "dom". It just plots the same points that I saw when developing the report.
Is there a way I can get it to prompt me for the query criteria, run that through the query to generate the data, then just plot that ?
I am working on a SSRS report for TFS 2017 Update 3 on-prem. It's extracting data for a specific IterationPath, given as a parameter.
I would like to set the Parameter's default value to the current iteration.
I thought it should be simple, but I am googling and trying resolutions for a while now, and nothing... would be happy to hear if anyone managed to solve this.
One of the leads I found, was to use tbl_nodes in the collection DB, but it is empty on my DB. Another solution, which must have worked in tehthe past, but no longer does, is: http://blogs.microsoft.co.il/yuvmaz/2012/10/17/tfs-reporting-recipes-1-get-the-iteration-pathguid-for-the-current-sprint/
I solved this by browsing the TFS DB and running queries. there is very little documentation, unfortunately.
Here is the solution that works for me:
Connect to the warehouse DB and run this query (I added a check of iteration path to narrow down the results to the ones that suite my requirement):
SELECT IterationPath
FROM DimIteration
WHERE (IterationPath LIKE '\XX\Y%Z%') AND (CONVERT(date, FinishDate) >= CONVERT(date, GETDATE())) AND (CONVERT(date, StartDate) <= CONVERT(date, GETDATE()))
I created a matrix with two column groups (year and quarter).
The expression for the quarter label (the expression under [year]) is:
"Q " & CStr(Fields!quarter.Value)
So in the report I get Q1, Q2, Q3 and Q4 as quarter labels.
We have a international team so I need the others labels to be in german or in english, depending on the user. So I created a dataset with all translations which is filled from a translation table in the database. To get the correct translation for the label I use the LOOKUP() function.
When I use LOOKUP() to get the correct translation for the "amount Rest" textbox (located in the year group) it works fine:
=LOOKUP(11, Fields!ID.Value, Fields!description.Value, "ds_Labels")
The result:
But when I try to use LOOKUP() to get the translation for the "amount" textbox, which is located in the quarter group, the correct translation appears but the year label also starts with 2014 instead of 2008 and the quarter and year labels repeat:
=LOOKUP(17, Fields!ID.Value, Fields!description.Value, "ds_Labels")
The result:
I've no idea what kind of bug this is and how I can get rid of it. Maybe someone can help me :)
UPDATE
Like I mentioned in the comments, the LOOKUP() function works in the first three columns of the quarter group. The report goes crazy if I try to use LOOKUP() in the fourth textbox of the quarter group (see the second last screenshot). But I still don't understand why...
UPDATE 2
When I deploy the report on a SSRS 2008R2 the report works completely fine. But I need it to run on SSRS 2012. Maybe it is a SSRS2012 bug?
Have you made sure that only one record is being returned when you look up the record(s) associated with id 17? The function is designed to be used for 1 -to- 1 relationships
I believe it's a bug. Running Lookup() / LookupSet() queries against the same dataset that is being currently rendered in a tablix causes duplicates.
The only workaround I found is to pass a copy of the dataset and run Lookup() queries against that copy. This way everything works fine.
My data and this SSRS chart have a ton of problems, I'll try to keep my question(s) succinct.
First, as you can see by this chart and this screenshot of my data (just showing date and April Savings), my expression/chart is not summing all of the savings within a month, which is my goal.
It appears to be picking one amount within the correct month and using it. I set up a tool tip for April so I could see what number it's pulling (since clearly the chart columns are not representing the data whatsoever - another issue).
You'll see in the SQL data screenshot that it does indeed pull $1,230 from the April 2013 Savings. How can I get this to Sum within the month AND still do a running value from the beginning of time data began to current, this often will include multiple years.
Here's my Chart Data (note that my Team Goal works perfectly, and is even charted correctly - but if anyone knows how to force that line to go from end to end on my chart, feel free to let me know.) :
To summarize, how can I sum each month's data, while still do a running value across the months AND years?
Here's my Expression for Implementable Savings:
=RunningValue(Sum(Fields!ImplementableSavings.Value), Sum, nothing)
(obviously if I can get one working, I can get both)
My Expression for ImplementedSavingsMonth:
=MonthName(Month(Fields!ImplementedSavingsDate.Value))
My Expression for ImplementedSavingsYear:
=Year(Fields!ImplementedSavingsDate.Value)
Let me know if there's anything else I can provide.
Quick sidebar question: WHY does my chart column collect one piece of data. IE: see the tool tip $1,230 for April 2013), but the chart column displays that the number is around $1.7M? And in this scenario, both of my blue and yellow columns are displaying the same number, so why does blue always appear to be a higher number? I will ask this as a 2nd question if it's inappropriate for me to ask here.
I would use this Expression for Implementable Savings:
= RunningValue ( Fields!ImplementableSavings.Value, Sum, "Chart1")
.. assuming your Chart's name is Chart1.
System - SSRS 2008R2 using report builder 3.0 (or BIDS if you think the answer lies there)
Objective - Create a report that displays sales data from the past 24 hours for each sales region. The report needs to refresh every 10 minutes, and always show the last 24 hours from the last refresh. However - the users still need to have the ability to change the time frame.
What did I do?
Built a report that shows sales data for a single region depending on 3 parameters: StartTime, EndTime, RegionCode. Lets call it RegionalSales
Built a master report that includes multiple subreports of RegionalSales. the master report has 2 parameters - StartTime (with a default value dateadd("h",-24,Now())) and EndTime (with a default value Now()). I am sending StartTime and EndTime to the subreports, and every subreport is assigned it's own region.
I've set the Auto-Refresh property of the master report to 600.
Results -
At first everything seems perfect - the master report loads, and the data shown is correct for the loading time (let's say 22:08). However, after the auto-refresh (that occures at 22:18) the data is still correct as to 22:08.
The problem is that on the first load of the report the parameters get their default values as I stated (StartTime = 10/12/2011 22:08 & EndTime = 11/12/2011 22:08).
However, on the auto-refresh instead of the paramters updating (So I'll get StartTime = 10/12/2011 22:18 & EndTime = 11/12/2011 22:18) I still get the old values (StartTime = 10/12/2011 22:08 & EndTime = 11/12/2011 22:08)
Any thought on why, and how can I change this?
Thanks!
If I understand correctly...
Unfortunately, report parameters get their values only at the first load unless the user manually clicks the View Report button.
To get around this, I'd try converting the date parameters to not use default values, but rather get their values from a query and use the equivalent of GETDATE() for your RDBMS. If I'm not mistaken this will require you to add another DataSet to your report... but it won't really be a dataset since the query for it will simply be SELECT GETDATE() [or the equivalent for your RDBMS] and whatever transformations you need to do for that.