Solved

PerformancePoint Frequency Grouping by Number Range

Posted on 2013-11-05
1
305 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

820 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