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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
richters
Partner - Contributor III
Partner - Contributor III

Exclude dimension in formula which is shown in chart

Hi all,

I want to show a chart like:

codecodeTextInformation2012 (formula)
2013 (formula)
A1Text1S11
A1DifferentText1S11
A2Text2M11
A3Text3M01

This is the table in QV:

codecodeTextInformationyearcount
A1Text1S20121
A1DifferentText1S20131
A2Text2M20121

A2

Text2M20131
A3Text3M20131

I want to show the first table here in a chart.

2012 and 2013 should be formulas which do the following:

If the sum of count is > 1 and year=2012 and the field codeText is left out, then write 1.

Same with 2013.

I thought about:

sum({<year={'2012'}, codeText=>} count)

but there is a '0' in A1 - Text1- 2013 and also a '0' in A1-DifferentText1 - 2012 which should be filled with 1 because there is a code with the information in the years.

Thanks!

Labels (1)
2 Replies
richters
Partner - Contributor III
Partner - Contributor III
Author

Maybe I have to write it more clearly:

I want to know if the codes with the information in the years 2012 , 2013 do exists. Doesn't matter which codeText they have. But in the chart the codeText has to be shown because not everyone knows what the code means (it just changes in some details).

swuehl
Champion III
Champion III

I admit I haven't understood all your requirements, but try maybe something like

sum({<year={'2012'}>} total<code> count)

resp.

sum({<year={'2013'}>} total<code> count)

using code and codetext as dimensions (and maybe another expression =only(Information) )