Summary average rounding not working - angularjs

I'm using jqGrid with AngularJS to make a small web.
I have created a grid with some data, using jqGrid grouping including a summary row.
I've changed summary row position to the main row of each group.
I want some summary cells that have to be averages rounded to 2 decimals, but I don't get it working.
This is the colModel definition for one of the rows which I want to round:
{name:'cost', label:'Total Cost', width:55, summaryType:'avg',summaryRound:2, summaryRoundType:'round'}
How can I get that column rounded?

You forgot to add formatter:'number' in the colModel...
Please, take more time to do some research before asking next time.

Related

SSRS - show missing axis on column chart where there are no values?

I have a column chart in SSRS that looks like the attached. This shows the percentage of calls across the day. I have been asked to also show the hours on the chart where there were zero calls.
I have tried adding this into my dataset in SQL however this turned almost 200 rows into 20000 rows (due to the period of time looked at which can sometimes be years)
I have tried using the lookup function to add a time dimension into my report, and then join the dataset onto this time dimension - I then found out that I can't use SUM in a lookup function so I am a bit stuck. Does anyone have any workarounds for this?
Value expression is "=Sum(Fields!Calls.Value) / Sum(Fields!Calls.Value, "UsageSummary")"
What chart looks like now (wrong)
What chart should look like (with all hours included)
Have you tried clicking on the horizontal axis properties
On the Axis Options update the Interval from Auto to 1

Google Data Studio piechart from column with multiple values per cell

I have an excel spreadsheet from a Questionnaire. One of the questions was in checkbox format. The result of this question are held in a single column, and where the user has selected more that one answer, the answers are separated by comma's.
What devices do you own? Mobile, PC, Laptop, Tablet
So in a single cell I get 'Mobile,PC' when these two are selected.
I am using Google Data Studio to visualise the data, but stuck on how to create a graph that shows all the values individually.
At the minute I get a combination for every value. So a value of 1 for 'Mobile,PC' rather than a value for 1 'PC' and '1'Mobile.
Google Data Studio doesn't allow countif statements, so a bit lost.
I have tried to TRIM, COUNIF and REGEX but none have worked.
Count(REGEXP_MATCH(Device, "PC"))
I'm a bit lost on this, tried so many combinations. If someone can put me on the right track I would be very grateful
I don't think you'll be able to achieve that with a pie chart without changing your data source first as it needs one dimension (Device) and then one count metric which your data doesn't seem to support.
You could create 4 metrics like
SUM(
CASE
WHEN REGEXP_MATCH(Device, "PC") then 1
ELSE 0
END
)
And put them into a Stacked bar / column chart. You might need to create a dimension that has a single value to avoid having multiple bars/columns.

UI-Grid row aggregate

As I'm using angular ui-grid, I'm looking for a way to get sum of rows.
Basically I have a timesheet model grid where users will clock their work logs. The last column will show the total number of hours worked per week. This will be the sum of row items. How do we do this?
All examples lead to column aggregates but now row.
Thanks
You can always add a column at last, specify a template for the cell, and inside the template you will have access to row.entity, write a function that takes the row as input, traverses it for all 'keys' and sums them up, returns the summation. Call the function from the template, so in each angular 'tick' you will get updated values.

extjs paging toolbar

i am using extJs paging tool bar with store or grid panel ,it works fine with records .
when if there are no records in database,and after receive jsson data.it does,nt display proper number of records which will be zero .please give me solution
You must have the total number of rows calculated in the controller part, to have a result as this one:
{success:true,"total":1,"result":[{"id":"2","MyColumn1":"blabla","MyColumn2":"blibli"}]}
Where total is number of rows
Can you give us your code and the json result that it's given to your store

Reporting Services Chart - Hard Coded Series

I am developing an SSRS 2008 report which contains a number of simple charts. On the x axis I have the 12 months of this year - Jan 2009 thru December 2009. On the Y is an integer value ranging from 0 to 100 in increments of 10. I am plotting the number of times an issue occurred per month. So January could have a value of 10, February 30, etc. etc.
I would like to have a horizontal line/series that is constant and shows the yearly average for 2008. So, say the average was 30 issues per month in 2008, I would like for that line to be shown in my chart. Basically, I want to draw a straight line across the chart for that value... I can see how to add more complex series, but this seemingly simple task is getting the better of me.
Doe anyone have any idea how this could be accomplished?
Thanks in advance,
Jason
[Update] To add some further details, I am already pulling the average for each row in my dataset and have it set up as its own series. However, rather than plotting a line, this approach plots individual points for each month. While this is close to what I want, I need to join the dots so to speak. The chart is of the Error Bar (Range) variety.
Can you use a column / line hybrid chart? If so then add a constant or dynamic target value to the chart:
Design the chart.
On the Data tab in the Chart Properties dialog box, add a new data value (for example, Target).
Set the target value (see the example in Figure 9 on link this uses a constant target value of 100000 across all categories but you can do it dynamically too). Make sure to use an expression starting with = (equals). Otherwise, the value is not interpreted as a numeric value.
See the example on the MS charts page at http://msdn.microsoft.com/en-us/library/aa964128.aspx
Add the yearly average to each row in the underlying the query. Add data series on just that value.
I managed to solve this issue myself.
As I mentioned, I was using an Error Bar graph. Right-clicking on the series of interest, I was able to change the graph type for that particular series - essentially leaving me with a chart with multiple graphs in it...particularly simple if you know where to look - which i did not! Thanks everyone for your suggestions.

Resources