Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to generate the bars in bar chart

Hi,

i have some data like one dimension and one expression. in dimension column data is close, raclose1, finished, removed, close4, open,pending....etc use this data to develop bar chart. in the bar chart all close data means(close, raclose1, finished, removed, close4) combined to generate one bar and remaining two are two bars in bar chart is it possible. plz tell me any one urgent...     


5 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Subbu,

In script try like this

LOAD

*,

If(Match( ColumnName, 'close', 'raclose1', 'finished', 'removed', 'close4'), 'finshed',  ColumnName)

FROM DataSource;


Now use this new column as dimension, this is the best method instead of doing this in front end.


Regards,

Jagan.

Not applicable
Author

i m using the qvd data. so  change dimension in calculated  dimension  field  only. plz tell me dimension field caclulation......

jagan
Luminary Alumni
Luminary Alumni

Hi,

Even you use QVD you can do this

Data:

LOAD

*,

If(Match( ColumnName, 'close', 'raclose1', 'finished', 'removed', 'close4'), 'finshed',  ColumnName)

FROM Data.qvd;


If you want to do this in Calculated dimension then use this


If(Match( ColumnName, 'close', 'raclose1', 'finished', 'removed', 'close4'), 'finshed',  ColumnName)


Regards,

jagan.



Not applicable
Author

don't write the script level.i am apply only in calculated dimension field or expression  level in bar chart plz help in UI design format only. 

jagan
Luminary Alumni
Luminary Alumni

Hi,


Try this as calculated dimension in Dimension tab


If(Match( ColumnName, 'close', 'raclose1', 'finished', 'removed', 'close4'), 'finshed',  ColumnName)


Regards,

Jagan.