Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
max_potass
Creator
Creator

Set Value of Expression to Zero if Dimension has one Value

Hello everyone,

I have a small Problem I can't find anything about in the Documentation or here...

I want to create a Pivot Chart with 2 Dimensions and 2 Expressions.

One of the Expressions only has Values for the first Dimension. So Qlikview is "pasting" these values for the second Dimension.

I want these values in the second Dimension to be zero.

I guess I need an "If" and a functions that tells me, if the current 2nd Dimension has one specific value. But GetSelectedCoumt does obviously not work, as it is not an selection. I need something similar which works here, right?

Does anyone has an Idea, how to fix this?

I have:

I have.png

I want:

I want.png

Best regards

Max

1 Solution

Accepted Solutions
marcus_sommer

You could catch this with a query on the dimensionality maybe like:

if(dimensionality() = 1, Expression2)

- Marcus

View solution in original post

3 Replies
marcus_sommer

You could catch this with a query on the dimensionality maybe like:

if(dimensionality() = 1, Expression2)

- Marcus

sergio0592
Specialist III
Specialist III

Hi, try with :

=if(RowNo()=1,Expression2)

max_potass
Creator
Creator
Author

Thank you! That worked.