Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Bashar
Contributor III
Contributor III

QlikSense - Pivot Table - Only Function

Hello,

Bashar_1-1680781665187.png

You see a pivot table and a straight table, for some reason I'm getting nulls in the pivot table if I leave out certain  dimension out, even though, in the straight table you can see that there is a value for each combination.

I'm using the following expression Price in both tables.

If(isNull(StylePrice),Only({<isCurrentSKUPrice={'1'}>}ItemPrice),Only({<isCurrentSKUPrice={'1'}>}StylePrice))

Looking at the first row in the straight table, StylePrice is null, so get me the only ItemPrice which has the "Current" flag = 1. It does that until I remove some of the columns.

Working: (With SeasonCode)

Bashar_3-1680782049898.png

Not working . (Without SeasonCode) - Price List

Bashar_2-1680782017606.png

 

 

Labels (4)
1 Solution

Accepted Solutions
Bashar
Contributor III
Contributor III
Author

Just to close this, I did a workaround where "IsCurrentSKUPrice" value '1' gets selected and deselected as needed to keep the value from showing nulls.

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

@Bashar maybe this?

If(isNull(StylePrice) and isCurrentSKUPrice='1',
Aggr(Only(TOTAL <SeasonCode> ItemPrice),Style,Option,[Item Number]),
Aggr(Only(TOTAL <SeasonCode> StylePrice),Style,Option,[Item Number]))

Bashar
Contributor III
Contributor III
Author

Hello @BrunPierre 

Thank you for the response, but this didn't quite work out as expected.

Bashar_0-1681306692851.png

 

Bashar
Contributor III
Contributor III
Author

Just to close this, I did a workaround where "IsCurrentSKUPrice" value '1' gets selected and deselected as needed to keep the value from showing nulls.