Solved

PerformancePoint Frequency Grouping by Number Range

Posted on 2013-11-05
1
304 Views
Last Modified: 2013-11-08
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
Comment
Question by:jkeagle13
1 Comment
 
LVL 11

Accepted Solution

by:
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>

Open in new window

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question