all groups > sql server reporting services > september 2007 >
You're in the

sql server reporting services

group:

How to quantize values on bar charts?


How to quantize values on bar charts? Kevin
9/6/2007 7:54:00 PM
sql server reporting services:
Dear reader,

I have a list of CUSTOMER_ID with PURCHASE_AMOUNT.

With these information, I like to show on a bar chart the frequency of
PURCHASE_AMOUNT (i.e. how many people spend $2, how many people spend $4,
etc)

At the same time, I like to quantize PURCHASE_AMOUNT to $0-$10, $10-$20,
$20-$30,....(so I dont get an overly cluttered bar chart)

I appreciate your time and patience in advance.

Thank you.
RE: How to quantize values on bar charts? Lars-Erik
9/7/2007 12:36:00 AM
Hi Kevin!

Maybe you can make another dataset where you "turn the query around"?
Like
select case when purchase_amount between 0 and 10 then '$0-$10' when
purchase_amount between 10 and 20 then '$10-$20' ... end as frequency,
count(distinct customer_id) as customers from orders group by
case when purchase_amount between 0 and 10 then '$0-$10' when
purchase_amount between 10 and 20 then '$10-$20' ... end

add more frequencies as you need.

There might be a better way, but at least you'll get started :)

HTH,
Lars-Erik


[quoted text, click to view]
RE: How to quantize values on bar charts? Kevin
9/7/2007 2:08:03 AM

Hi Eric

Thanks for that.. I did just that before my post to get myself started.
Wondering if there's any functionality to quantize the data like how the OLAP
cube can (you can discretize or quantize floating values there)

Cheer,
Kevin

[quoted text, click to view]
RE: How to quantize values on bar charts? Lars-Erik
9/7/2007 4:58:02 AM
Cool :)

I don't know any functionality for quantizing. I'd recommend building a
small cube then. ;)

--
Lars-Erik


[quoted text, click to view]
AddThis Social Bookmark Button