Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Ymous
Contributor
Contributor

Calculation by a dimension which isn't in the table (Qlikview)

In the example below Area and Customer are dimensions from our Fact table.
Type is an expression - if(Sum(Sales) >= vHighVolume, 'High', if(Sum(Sales) <= vLowVolume, 'Low', 'Medium'))
Sales is an expression - Sum(Sales)

Ymous_2-1686127975261.png

This data is for current month but this needs to be flexible on various searches such as YTD or a random 3 or 4 months selected.

The High, Medium and Low value is anything 600 and over is High and anything 300 and below is low but this value can change hence it's a variable.

 

This needs to be by total number per Customer but if you remove the Customer field it all says 'High' as it's summing at the Area level, I tried using the Aggr function too but unable to get it to work.

Ymous_3-1686127984931.png

How do you make the chart sum by Customer but display by Area only as below?

Ymous_4-1686128650371.png

 

Labels (1)
1 Solution

Accepted Solutions
a_mullick
Creator III
Creator III

Hi,

Okay - thanks for clarifying. The only way I can think of is to use a calculated dimension:

a_mullick_2-1686141185837.png

 

Which gives:

a_mullick_1-1686140876402.png

 

 

 

View solution in original post

4 Replies
a_mullick
Creator III
Creator III

Hi,

 

If it's a straight table, then a simple solution would be to include Customer as a dimension but hide it in the presentation:

 

a_mullick_0-1686130939257.png

a_mullick_1-1686131002528.png

 

Ymous
Contributor
Contributor
Author

Thanks but i'd require the Sales to be summed and there to be 1 line per Area and High/Medium/Low therefore in your example it to look like this

Ymous_0-1686137466424.png

 

a_mullick
Creator III
Creator III

Hi,

Okay - thanks for clarifying. The only way I can think of is to use a calculated dimension:

a_mullick_2-1686141185837.png

 

Which gives:

a_mullick_1-1686140876402.png

 

 

 

Ymous
Contributor
Contributor
Author

Thanks, that worked great 👍