Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Insider: Product Roadmap Edition on March 3, 1 PM ET: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
deep2021
Creator III
Creator III

Calculated dimension consumes long time to load the data.

Hi All,

I am using the below calculated dimension in a chart to show the data.

if(len(CP_Key_P)>0,protocol)

But there are too may records and it is consuming a long time to display the data.

Can you please suggest how to write optimized condition for this.

Note: all the above fields are coming from different tables and if I can join the tables table size is increasing.

 

Thanks

Labels (4)
1 Reply
BrunPierre
Partner - Master
Partner - Master

Hi, maybe changing to a set analysis expression.

Dimension: protocol

Expression: Count({$<CP_Key_P={"*"}>} DISTINCT CP_Key_P)

On the other hand, filtering in the script uses the least amount of memory and ensures high performance.

To remove null values in the model, you can add a where clause to the load statement

Where Len(Trim(CP_Key_P)) > 0 ;