
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
true or false
hi alli,
this is my scenario
column A ! Column B ! Final
False False False
False True True
True False True
True True True
I need suggestion to get final column
- Tags:
- new_to_qlikview
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be something like this:
If(Upper([column A])&'|'&Upper([Column B]) = 'FALSE|FALSE', 'False', 'True') as Final
SAMPLE:
Table:
LOAD *,
If(Upper([column A])&'|'&Upper([Column B]) = 'FALSE|FALSE', 'False', 'True') as Final;
LOAD * Inline [
column A, Column B
False, False
False, True
True, False
True, True
];


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The final table is a Boolean AND of Column A and Column B.
If these fields hold correct True (-1) and False (0) values, then you can use columnA AND columnB
QlikView has the following Boolean operators
Logical Operators
All logical operators interpret the operands logically and return true (-1) or false (0) as result.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I deleted my original reply instead of editing it to correct the case on my expression.
Is there a reason you would do this instead of
If(Upper([Column A])='FALSE' and Upper([Column A]) ='FALSE', 'False', 'True')
I know they both work. Is my way against the best practice, poor performing or just a different way of doing it?
I am mostly self taught, so I think a lot about whether my expressions are performance hogs. Any feedback is appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI SUNNY,
IN EXPRESSION? IS IT POSSIBLE


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This should do it:
Column A | Column B | if([Column A] ='False' and [Column B] = 'False', 'False','True') |
---|---|---|
False | False | False |
False | True | True |
True | False | True |
True | True | True |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this as your expression:
If(Upper([column A])&'|'&Upper([Column B]) = 'FALSE|FALSE', 'False', 'True')


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In fact it's OR instead of AND
AND is True Only when both are True
Eduardo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI All,
Thanks. All the answers are correct. I choose one . I will mark it as correct answer.
thanks


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops! Its a long time since I looked at ANDs ORs and XORs 🙂

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