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

Concatenate two values in Field

Hi Experts,

I got one requirement that have to concatenate two values in a field

For ex:

Product    Qty

    A          10

    B          20

    C          25

    D          30

I need to add A and B means my result should be...

Product     Qty

   AB         30

    C          25

    D          30

Please let me know solution

Thanks in Advance

Nihhal.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use a calculated dimension: =if(match(Product,'A','B'),'AB',Product). See attached example.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

You can use a calculated dimension: =if(match(Product,'A','B'),'AB',Product). See attached example.


talk is cheap, supply exceeds demand
er_mohit
Master II
Master II

Try this

AS:

LOAD if(WildMatch(Product,'A','B'),'AB',Product) as Prouct,* Inline [

Product,    Qty

    A  ,        10

    B  ,        20

    C  ,        25

    D  ,        30

];

noConcatenate

LOAD Prouct, sum(Qty) as Quantity

Resident AS

Group by Prouct;

DROP Table AS;

nihhalmca
Specialist II
Specialist II
Author

Thank You Gysbert

NiHhal.