

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If and Match in Script
Hello All,
I'm looking to have multiple match conditions in my script.
Ex: if(match(FNum,'140','150','160','170') and Match(ANum,'*'),1,0)as Absolut_N
The First Match works fine but, the second with * doesn't work. Please, help me on how to include * in a Match condition.
Regards
Sai.
- Tags:
- multiple condition
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try like this
If(Match([FNum],'140','150','160','170') and Match([Anum],'*'), 'Fnum', Anum)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If(Match(FNum,'140') and Match(ANum,Chr(42)),1,0) as Absolut_N;


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Might want to verify that [Anum] is not null. The * matches non-null values.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both the solutions don't work for me. They give 0 as result

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you be more specific with Anum with *
what are you trying to do??
can you explain with sample file??
Regards,
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 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First things first: what is it that you want to test? And what does your data look like?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What are the possible values for Anum?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
may be
if(match(FNum,'140','150','160','170') ,'Yes',if(Match(ANum,'*'),'No','')) as Newfield


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If(Match([FNum],'140','150','160','170'), If(Match([Anum],'*', 1, 0)), -1) as Absolut_N

- « Previous Replies
-
- 1
- 2
- Next Replies »