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

Numeric Search(> or <) with Match

hi Community,

Is there any way to use Numeric Search(> or <) with Match , I am trying to search like

if(value>0,'T',value<0,'p') as test

so is there any way to use match in above if condition.

-Priya

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

If the conditions are mutually exclusive:

=If(value > 0, 'T', 'p')

Or, if not:

=If(value > 0, 'T', If(value < 0, 'p'))

Or use Match like this:

=Pick(Match(-1, value > 0, value < 0), 'T', 'p')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
Anil_Babu_Samineni

But What are the T and P in your statement?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jonathandienst
Partner - Champion III
Partner - Champion III

If the conditions are mutually exclusive:

=If(value > 0, 'T', 'p')

Or, if not:

=If(value > 0, 'T', If(value < 0, 'p'))

Or use Match like this:

=Pick(Match(-1, value > 0, value < 0), 'T', 'p')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein