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

Need to merge two status

Hi All,

I have 4 status (PFA) . I want to merge 2 status. The status is a field from DB . Is it possible to use any function in expression? or is there any other way ?

1 Solution

Accepted Solutions
its_anandrjs

Hi,

In the load script you can do it like

Ex:-

LOAD Status,

if(Match(Status,'A','B'),'AB',Status) as NewStatus;

LOAD * Inline  [

Status

A

B

C

D  ];

Or In front end you can try

if(Match(Status,'A','B'),'AB',Status)

Note:- Check suppress when value is null option.

Regards

Anand

View solution in original post

4 Replies
its_anandrjs

Hi,

In the load script you can do it like

Ex:-

LOAD Status,

if(Match(Status,'A','B'),'AB',Status) as NewStatus;

LOAD * Inline  [

Status

A

B

C

D  ];

Or In front end you can try

if(Match(Status,'A','B'),'AB',Status)

Note:- Check suppress when value is null option.

Regards

Anand

pho3nix90
Creator II
Creator II

What do you mean you want to merge them? Do you not want them split up in the chart? If so remove the dimension. If you want to string together 2 fields then do =FieldName1 & ' ' & FieldName2

Not applicable
Author

Cool that was really helpful

Not applicable
Author

FYI Small correction in the front end I need put single quotes for the status for the status I am merging for and AB is the name of the legend name.