Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Need Help

Hi Community,

Table1:

Load * inline [

ID, Type

100, Regular

101, Special

102, SS-C

103, SS-ABC

104, SS-Max

105, SS-C2];


I want to return only

Type= Regular, Special and SS-C*

SS-C* Means starting with SS-C


OutPut Table:

ID, Type

100, Regular

101, Special

102, SS-C

105, SS-C2


Hope you understand...



6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

before ; write:

where Type ='Regular' or Left(Type ,2)='SS'

let me know

paulwalker
Creator III
Creator III
Author

this is ok but i want

SS-C and SS-C2  i want to merge into one

SS-C

SS-C2    into one like SS

Like This

Type ='Regular' or Type='Special' or Wildmatch(Type, 'SS-C*'), 'SS') 

but it's not working in where condition..

Did i mistake here???

PrashantSangle

Hi,

In script

load * from TableName where Wildmatch(Type,'Regular','Special','SS-C*');

In front end

USe Calculated Dimension,

if(wildmatch(Type,'SS-C*'),'SS',Type)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Luminary Alumni
Luminary Alumni

Table1:

Load

ID,

Type,

If(WildMatch(Type, 'SS-C*'), 'SS', Type) AS NewType

FROM DataSource

WHERE WildMatch(Type, 'Special', 'Regular', 'SS-C');

Hope this helps you.

Regards,

Jagan.

Not applicable

Hi,

Try This

Type ='Regular'  or

Replace(Wildmatch(Type, 'SS-C*'), 'SS') 

sunilkumarqv
Specialist II
Specialist II

Please find the attached

use of pick and wildmatch we can achieve that.