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: 
Not applicable

Can we use set modifiers in dimension in case of a chart?

Hello Frns,

can i use set modifiers to use only some values from a field in a dimesion of chart?

Like if i have a table:

Table1

         B1     B2        B3

A1     200     300     400

A2     500     600     700

A3     800     900     1000

Where(A1,A2,A3) belongs to field A and (B1,B2,B3) belongs to field B and the crresponding values is C

I want to make a chart whose dimension contains only B2 and B3 expession will based on C field and the purpose is making a graph for A1 for its values B2 and B3,

How can i do it?

Thanks.

5 Replies
MayilVahanan

Hi

If my understanding is correct, you need as result like this

          B2      B3

A1     300     400

If so,

Try like in expression

=Sum({<A = {'A1'}, B= {'B2','B3'}>}C)

Hope it helps

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

Use the following expression to achieve your goal.

sum( {<A={'A1'},B={'B1','B2'}>} C)

Hopefully this helps.

Not applicable
Author

Hii All,

The above table is my pivot chart.I want to open a barchart for particular selection from field A.

where i used B as dimension but i don't want to show B1 for any graph.

I am using this expression for the chart

sum( {<A=GetCurrentSelections(A),B=B-{B1}>}C)

this expression is not working.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The A=GetCurrentSelections(A) is redundant as this is QV's default behaviour (and is not valid set syntax), so your expression should be:


sum( {<B={'*'}-{'B1'}>} C) or

sum( {<B-={'B1'}>} C)


Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MayilVahanan

Hi

Try like this

sum( {<B-={'B1'}>} C)

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