# QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

New Contributor III

## Bar Chart Design

Hi,

I have 6 expressions for the aging buckets and a field having the dates. How do I make the expressions show in the x-axis grouped by the date field (similar to the second chart below)?

My Expressions:

1. 0-30 days val USD:  sum(distinct([0-030DaysValue]))/1000000

2. 30-60 days val USD:  Sum(distinct([030-060DaysValue]))/1000000

3. 60-90 days val USD:  Sum(distinct([060-090DaysValue]))/1000000

4. 90-120 days val USD:  Sum(distinct([090-120DaysValue]))/1000000

5. 120 days val onw. USD:  Sum(distinct([120DaysOnwardsVal]))/1000000

6.  Total Val USD :  Sum(distinct([Total Value USD]))/1000000

Dimension: Date field

This is what I have right now. How do I flip the expression and dimension so that the chart looks like the second chart below?

Thanks!

Tags (2)
1 Solution

Accepted Solutions
Valued Contributor

## Re: Bar Chart Design

You either can create an island field with the aging bucket values or create a calculated dimension for the same purpose. Then use that as the first dimension of your chart and the Date field as the second dimension.

Your expression has to check the first (island or calculated) dimension values to use the proper calculation for each.

Review the enclosed file for the example.

2 Replies
Valued Contributor

## Re: Bar Chart Design

You either can create an island field with the aging bucket values or create a calculated dimension for the same purpose. Then use that as the first dimension of your chart and the Date field as the second dimension.

Your expression has to check the first (island or calculated) dimension values to use the proper calculation for each.

Review the enclosed file for the example.

New Contributor III

## Re: Bar Chart Design

Thanks Carlos!

Is there a way we can sort the bars(ascending or descending) for each aging bucket?