Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
aaronnayan
Creator III
Creator III

Calulcated condition QlikSense!!!!!!!!!!!!!!!!!!!!!

Hi Guys

Trying to write a formula

Could you correct this?

if(GetSelectedCount({<[Product Sub Group]>}={'Cheese'}>}[Sales]))

I only want the chart to populate if cheese is selected

Thankyou

24 Replies
aaronnayan
Creator III
Creator III
Author

Okay the expression is correct however it still does not work how it is intended to

Do i put the following expression in the calulated condition? or ad the dimension or expression??

Let me clarify i want to chart to show me sales and to populate only when i select the value cheese from a filter pane

agigliotti
Partner - Champion
Partner - Champion

you have to set a calculation condition as below under Add-ons->Data handling.

if( [Product Sub Group] = 'Cheese', -1, 0 )


with this condition your chart object will be filled only if you select the value 'Cheese' in the [Product Sub Group] field.

Anonymous
Not applicable

Did you check with chart properties ?

chart properties.jpg

aaronnayan
Creator III
Creator III
Author

not working

agigliotti
Partner - Champion
Partner - Champion

please send a screenshot in order to see what are your current selections.

sunny_talwar

How about this

=If(GetSelectedCount([Product Sub Group]) > 0, Sum({<[Product Sub Group] *= {'Cheese'}>}[Sales Amount]))

aaronnayan
Creator III
Creator III
Author

Hi Sunny

This is what im gettingqliikk community2.PNG

sunny_talwar

Can you post the image of the expression... as all I see is the chart... not sure if you use the expression correctly or not

agigliotti
Partner - Champion
Partner - Champion

let me see your object calculation condition.

aaronnayan
Creator III
Creator III
Author

qliikk community2.PNG

=If(GetSelectedCount([Product Sub Group]) > 0, Sum({<[Product Sub Group] *= {'Cheese'}>}[Sales Amount]))