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

help

Hi Team ,

please find below  in that i have 2 columns status and type. my issue is if status is completed then type should be "Enterprise" how to change standard to enterprise

  

statustype
completestandard
completestandard
completestandard
completeEnterprise
completeEnterprise
completeEnterprise
completestandard

Thanks in Advance.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use below in script

Load

     status,

     If(status = 'complete', 'Enterprise', type) as type

From Tablename;

View solution in original post

13 Replies
MK_QSL
MVP
MVP

Use below in script

Load

     status,

     If(status = 'complete', 'Enterprise', type) as type

From Tablename;

vinod2086
Creator II
Creator II
Author

Hi Manish,

My question is for all completed status , type should be Enterprise not standard.

sorrakis01
Specialist
Specialist

Hi,

Look again Manish expresion. Works well.

Regards,

vinod2086
Creator II
Creator II
Author

Hi Jordi,

statustype
completestandard
completestandard
completestandard
completeEnterprise
completeEnterprise
completeEnterprise
completestandard

please see above file in that type is displaying "standard" and "enterprise" but my situation is i don't want to display "standard" for all status completed cases type need to display "Enterprise"

please help

sunny_talwar

That is exactly what is going to happen once you run Manish's if statement in your load statement.

Sample attached:

Table:

LOAD RowNo() as UI,

  status,

     If(status = 'complete', 'Enterprise', type) as type

FROM

[https://community.qlik.com/thread/204340]

(html, codepage is 1252, embedded labels, table is @1);


Capture.PNG

HirisH_V7
Master
Master

Hi,

You can create in your script like this ,

If(Status='Complete','Standard','Enterprise') as Type

or

If(Status='Complete','Standard',Type) as Type

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this in script;

Load

     status,

     If(MixMatch(Trim(status), 'complete', 'Enterprise', type) as type

From DataSource;

Regards,

jagan.

sorrakis01
Specialist
Specialist

Hi,

Yes exactly and repeat, Manish expresion is the solution to your problem.

Always of Status be 'Complete' type will be 'Enterprise' and if you one another one Status will be another Type...

Regards,

vinod2086
Creator II
Creator II
Author

hey am sorry manish its working fine..

Thank you so much