Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write calculated field in the script

Hello

Help me to write calculated field in the script, please:

COUNT(TOTAL <Field1> DISTINCT Field2) as Field3,

it's works in the pivot table, but don't works in script.

2 Replies
its_anandrjs

In load script you have to aggregate the count with dimensions.

See the example for this

Source:

Load

Field1,

Field2,

Field3

From Locaition;

Final:

Load

Field1,

Field2,

Count(Field3) as Field3

Resident Source

Group by Field1,Field2;

Drop table Source;

Joseph_Musekura
Support
Support

Hi

See attached sample with 2 alternatives.

Thanks