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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Switching expressions and dimensions in chart

Hello everyone!

i suspect it must be an easy thing to do but I am kind of stuck here. I would like to know if it is possible to switch expressions and dimensions in a stacked bar chart. This is what i am trying to do:

 

2014201620172018
a4001002500
b00300150
c150060050
d6002601500
e01501500

bar chart.PNG

Thanks in advance!

emin

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Hi,

May be CrossTable?

Capture.JPG

View solution in original post

6 Replies
buzzy996
Master II
Master II

create a either cycle/drill down group and use the same group as ur dimension.

that helps to change the dimension dynamically.

buzzy996
Master II
Master II

fyi,how to do.change dimension.PNG

Mark_Little
Luminary
Luminary

Hi,

As mentioned a cyclic group will let you change the dimensions.

But you could used conditional option.

The either use a data island and a selector like

LOAD * INLINE [

    Option

     Expression1

     Expression2

];

The an option as a selector

Then the conditon would something like

=GetFieldSelections(Option) = 'Expression1'

Mark

Anonymous
Not applicable
Author

Thanks everyone for responses! However I should have been more precise. I don't have years as dimensions. Actually this is how my data looks like:

 

2015 H12015 H22016 H12016 H22017 H12017 H22018 H12018 H2
a15025030702005000
b000030000150
c10050002004002525
d3003001001605010000
e00501005010000

Apologies for not making it clear

Emin

settu_periasamy
Master III
Master III

Hi,

May be CrossTable?

Capture.JPG

Anonymous
Not applicable
Author

Hi there!

thanks a lot! I appreciate your help! exact;y what i needed to know.

Regards

Emin