Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Set expression how can 1 exclude 2 condition ?

HI All

Below expression work fine :-

Sum({<year={">=2015"},sub_seg={"02"}>} sales)

I want to modify the above expression with exclude seg=02 , it work fine :-

Sum({<year={">=2015"},sub_seg|={"02"}>} sales)

Now i encounter problem , when i try exclude one more seg=01 :-

Sum({<year={">=2015"},sub_seg|={"02"},sub_seg|={"01"}>} sales)

Can some one advise me where go wrong ?

Paul Yeo

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

Sum({<year={">=2015"},sub_seg-={"02","01"}>} sales)


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

Sum({<year={">=2015"},sub_seg-={"02","01"}>} sales)


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
paulyeo11
Master
Master
Author

Hi Kaushik

Thank you very much. it work

Paul