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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

Performance: QlikSense Chart Dimension Optimization:

Hello Experts,

How to optimize the calculated dimension for Chart?
 
=if(Category <> 'NA', Category)
 
Thank you!
2 Solutions

Accepted Solutions
Or
MVP
MVP

Either create a field in script as previously suggested, or use Category as the dimension, and a set analysis of {<Category-={NA} >} in the measures.

View solution in original post

anat
Master
Master

Or else use dimensions as Category

Define measure like sum({<Category-={NA}>} sales) 

View solution in original post

6 Replies
TcnCunha_M
Creator III
Creator III

You create this in the Load script 😁

 

Best way is have this one the load script the same if.

Keep in mind: If it's a if can be a field on the load

As you think, so shall you become.
vincent_ardiet_
Specialist
Specialist

If you don't have access to the loading script, you can try like this (no idea if this is performant enough but without IF this should be better):
=Aggr({<Category-={NA}>} Only(Category),Category)

TcnCunha_M
Creator III
Creator III

Performance will be bad, because it's a Aggr with Only i think is similar performance as if 

As you think, so shall you become.
Or
MVP
MVP

Either create a field in script as previously suggested, or use Category as the dimension, and a set analysis of {<Category-={NA} >} in the measures.

anat
Master
Master

Or else use dimensions as Category

Define measure like sum({<Category-={NA}>} sales) 

sidhiq91
Specialist II
Specialist II

@Purushothaman  I think the best approach would be to try in the load script itself.

Load *

From Table

where category<>'NA';