Jump to content

How to create a Pie Chart in Spotfire from a calculated aggregation of raw data?!


Jeff Hanson---LEFT

Recommended Posts

I have a data set of several production batches that includes multiple test parameters and the results for many units. I've created a cross table with a custom expression to calculate and bucket (Red, Yellow, Green) into a column. This works fine. However, I want to create a pie chart with slices for Red, Yellow, Green.

I can't seem to find the magic approach!

Help is appreciated.

thanks!

Link to comment
Share on other sites

This is the cross table...

image.png.b417d73e4aeb72381571996fc9fde944.pngThis is the custom expression for the "CpkGroup"...

Case when (Min(Abs(Min([uSL]) - Avg([TestResultValue])),Abs(Avg([TestResultValue]) - Max([LSL]))) / (3 * StdDev([TestResultValue])))>=1.67 then 'Green' 

when (Min(Abs(Min([uSL]) - Avg([TestResultValue])),Abs(Avg([TestResultValue]) - Max([LSL]))) / (3 * StdDev([TestResultValue])))<1 then 'Red'

Else 'Yellow' END as [CpkGroup]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...