Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Register by January 31 for $300 off your Qlik Connect pass: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bar Chart Dimension Design

Dear all,

I have the following table. How do i have the customer and contract as horizontal axis? Meaning i want the chart display at the horizontal as below and the bar show on top

AAA-123         AAA-1234      AAA-12345   BBB-332    BBB-3321

CustomerContractCostPrice
AAA123510
AAA1234610
AAA12345810
BBB332810
BBB3321810
4 Replies
swuehl
Champion III
Champion III

You can use a calculated dimension:

=Customer & '-' & Contract

and then as expression whatever you want to aggregate:

=only(Cost)

or

=avg(Price)

or whatever.

Instead of using a calculated dimension (available on dimension tab of chart properties), you can add a field in your load script, that does the same.

Anonymous
Not applicable
Author

Chee

Create the table as a Chart of type Pivot table, you may well wish to set <Always Fully Expanded> on the presentation tab.

You will need a Calculated Dimension:

     [Customer} & '-' & [Contract]

and for expressions

     Only(Cost)

     Only(Price)

Now comes the fiddly bit

     In the GUI drag and drop the Calculated Dimension and drop on one of the expression titles.

Best Regards,     Bill

MayilVahanan

Hi

Bring one field from load by Customer & '-' & Contract as CC, and then use as dimension, if you are using in many places.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

hi swuehl,

I have created a calculated dimension as you mentioned. But it seems the dimension is not sorted by customer code.i want all the customer together.