Solved

# PerformancePoint Frequency Grouping by Number Range

Posted on 2013-11-05
300 Views
Hello,

I have a graph I want to put together where I have items with a value for number of days before due date.

On the Y axis in PerformancePoint, I want the count for number of items. On the X axis, I want groups, 0-10 days, 11-20 days, and 21-30 days. The items would then fall into one of the groups based on the value that exists in the data for number of days until due date. That is already captured in the database.

How can I use PerformancePoint to create those set values? I think it would be similar to date grouping; I just need numeric grouping in my case.

Thanks!
Joseph Irvine
0
Question by:jkeagle13
1 Comment

LVL 11

Accepted Solution

Louis01 earned 500 total points
ID: 39626530
Create the grouped data in a View in SQL Server and then create a connection from Dashboard Designer to a SQL Server table (this view) by using PerformancePoint Services.

Create View with grouped data Example:
``````--Setup a dummy tabel with data
DECLARE @myTable TABLE (ID int, DaysTillDueDate int, Value int);
insert into @myTable values (1, 1, 1);
insert into @myTable values (2, 2, 2);
insert into @myTable values (3, 3, 3);
insert into @myTable values (5, 5, 4);
insert into @myTable values (6, 10, 5);
insert into @myTable values (7, 11, 6);
insert into @myTable values (8, 12, 7);
insert into @myTable values (9, 20, 8);
insert into @myTable values (10, 21, 9);
insert into @myTable values (11, 22, 10);

--SQL grouping data for View Body example
select CONVERT(varchar,CONVERT(INT,t1.DaysTillDueDate/10)*10) + '-' + CONVERT(varchar,CONVERT(INT,t1.DaysTillDueDate/10)*10 + 10)  as DayGroups
, SUM(Value) as SumValues
from @myTable t1
group by CONVERT(varchar,CONVERT(INT,t1.DaysTillDueDate/10)*10) + '-' + CONVERT(varchar,CONVERT(INT,t1.DaysTillDueDate/10)*10 + 10)

--Example of creating a View
IF object_id(N'<schema_name, sysname, dbo>.<view_name, sysname, Top10Sales>', 'V') IS NOT NULL
DROP VIEW <schema_name, sysname, dbo>.<view_name, sysname, Top10Sales>
GO

CREATE VIEW <schema_name, sysname, dbo>.<view_name, sysname, Top10Sales> AS
<SQL for View Body>
``````
0

## Featured Post

### Suggested Solutions

Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.