Domanda

I am trying to figure out how can I use dimension values as one of the set modifiers in Expressions in qlikview. Consider the following:

Raw Data:
PName, count
AB,2
BC,3
CD,4

Dimension:
Name

Expression:
SUM(<{PName=Name}>count)

i-e using the dimension value as one of the set modifiers.

Thanks

È stato utile?

Soluzione

As @bdiamante said. It is not clear what you exactly want to do.

But I assume that you only want to use the current value of the dimension to calculate the count of names. If that is true, then you can simply say:

Expression:
=sum(count)

HTH

Altri suggerimenti

I believe I understand. Try sum({<Pname=p(Name)>}count). This says that pname will be the possible values of name. Also look into e() which is the excluded values.

If Name is a literal value, try this:

sum({<PName={'AB'}>}count)

It would always give you the count as if someone had selected PName = 'AB'.

If you only want it to show the count for AB, if AB has not been excluded based on the current selections (e.g. someone has selected PName of 'BC'), then use:

sum({<PName*={'AB'}>}count)

This will give you the count for AB, but only if AB is included in scope for (i.e. intersects with) the current selections.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top