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

How to add condition = (SEGMENT <> 'Related Coy') , into my SET expression ?

Hi All

My Table 2 Expression is working fine from Sunny :-

Sum({<aging = {'>=180'}>}da3_total * Pick(Match(currenc, 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1))

I need to insert a new condition into above expression , Which is SEGMENT not equal to Related Company. which is look like below :-

(SEGMENT <> 'Related Coy', SEGMENT)

Sum((SEGMENT <> 'Related Coy'),{<aging = {'>=180'}>}da3_total * Pick(Match(currenc, 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1))

I try the above expression , it is not working , Hope some one can advise.

I expected Table 2 Total = 383,409

Paul

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this

Sum({<aging = {'>=180'},SEGMENT -= {'Related Coy'} >} da3_total  * Pick(Match(currenc, 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1))

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

View solution in original post

5 Replies
paulyeo11
Master
Master
Author

my qvw

Anonymous
Not applicable

you Need to put the new Expression inside {<

try this:

Sum({<SEGMENT-={'Related Coy'},aging = {'>=180'}>}da3_total * Pick(Match(currenc, 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1))

stabben23
Partner - Master
Partner - Master

use -= instead of <> in Your Expression Sum({<SEGMENT -={ 'Related Coy'}.......

Anil_Babu_Samineni

Perhaps this

Sum({<aging = {'>=180'},SEGMENT -= {'Related Coy'} >} da3_total  * Pick(Match(currenc, 'EUR', 'NT', 'USD', 'YEN', 'BAH', 'SGD'), 1.64, (1/24), 1.25, 0.012, 1/24, 1))

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
paulyeo11
Master
Master
Author

Hi All

Many thank , it work fine now.

Paul