Focal Point
Define fields in the X axis

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9487009236

August 18, 2013, 11:43 PM
Luiz De Assis
Define fields in the X axis
Hello!

I'm trying to create a dynamic define field to use in conjunction with radio buttons to drive the results in a bar chart. Depending on the selection, the chart should show amounts by top 10 customers, or amounts by top 10 product types. The source I'm going against includes one field called NUMBER and another called SE_DIM. For instance, customer is 4, and product type is 5. I'm using that to create the defines below:

DIM/A50 = IF NUMBER EQ 4 THEN CUSTOMER ELSE IF NUMBER EQ 5 THEN PRODUCT_TYPE ELSE 'Not Defined';

CRITERIA/A50 = IF DIM EQ CUSTOMER THEN 'Customer' ELSE IF DIM EQ PRODUCT_TYPE THEN 'Product Type' ELSE 'Not Defined';

I've also created a define field for the Legend (Series) based on the CRITERIA field:

CRITERIA2/A50 = IF CRITERIA EQ 'Customer' THEN CUSTOMER ELSE IF CRITERIA EQ 'Product Type' THEN PRODUCT_TYPE ELSE 'Not Defined'

I'm able to get the "product type" radio button to work fine; however, the customer only shows with the product type data.

My chart also includes 3 radio button for MTD, QTD and YTD, and they work fine.

I want to be able to select the customer, and get the top ten customers only. By the same token I want to select the product type radio button and get the top 10 product types only. Any suggestions. Thanks

Luiz
August 19, 2013, 06:20 PM
VLozovsky
Luiz,

Can you first make sure that your DEFINE is created correctly? Can you create a similar procedure using report instead of a chart?

Thanks,
Vicky Lozovsky
August 19, 2013, 11:25 PM
Luiz De Assis
Vicky,

Thank you for your reply. I've tried the same define logic with a report, but the issue seems to get the radio buttons to work correctly. I'm able to get the MTD, QTD and YTD radio buttons to work with one dimension(customer), but it fails when I add on the "product type" dimension. In short, I want to be able to:
1- Click on the Customer button (dimension1)
2- Select either MTD, QTD, or YTD button (period)
3- Visualize amounts by customer (top 10)
4- Click on Product Type (dimension2)
5- Select either MTD, QTD, or YTD button
6- Visualize amounts by product type (top 10)

Thanks
Luiz