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

Change Chart Expression Depending on What Cyclic Dimension is selected

Hi,  I have a Cyclic Dimension in my chart,

At the moment the expression is Sum([Total Sales])

There is one Dimension that when selected I need to change the the Expression  to Count(Manufacturer)... is this possible?

Many Thanks,

Phil

 

3 Replies
sunny_talwar

What is the dimension name and what is the group name?

Alaaaq
Contributor
Contributor

try using if GetCurrentSelections function

example

=if(GetCurrentSelections([dimesnion],'value),

//IF TRUE

sum(field),

//IF FALSE

count(field)

)

dplr-rn
Partner - Master III
Partner - Master III

did you try GetCurrentField

e.g.

if(GetCurrentField(TestCylc)='Dim1', expression1, expresion2)