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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sujayrpatil
Partner - Contributor III
Partner - Contributor III

New value in a field representing all values

Hi,

I have data set similar to the below table. I am plotting a bar chart to Customers vs City.

Citycount of Customers
A20
B30
C40
D50

The requirement is to get one more value in City column  something like 'ALL' which will be combining all cities and will show total customers. I need this addition of new value to happen in Load script as I have other transformations to run after this change.

Expected Result:

Citycount of Customers
A20
B30
C40
D50
All140

 

Thanks In advance for  your replies.

Regards,

Sujay.

 

1 Solution

Accepted Solutions
avinashelite

If you have limited values try like this 

LOAD * Inline

[

City,City_Updated

A,ALL

B,ALL

C,ALL

D,ALL

A,A

B,B

C,C

D,D

];

 

and use the City_updates column in the front end 

View solution in original post

1 Reply
avinashelite

If you have limited values try like this 

LOAD * Inline

[

City,City_Updated

A,ALL

B,ALL

C,ALL

D,ALL

A,A

B,B

C,C

D,D

];

 

and use the City_updates column in the front end