Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator II
Creator II

Choose particular item in table

HI,

i have a simple table where a 'Fruits Name' column contains

Fruits Name

----------------

Orange

Banana

Grapes

Apple

here i need it to show all fruits except Banana and Grapes.

How could i do this.

5 Replies
Chanty4u
MVP
MVP

try this

fr:

LOAD * INLINE [

    fruits,

    Orange

    Banana

    Grapes

    Apple

   

];

new:

LOAD Fruits

Where not Exists ='Banana'and 'Apple';

jonathandienst
Partner - Champion III
Partner - Champion III

Are you looking for a front end expression:

=Sum({<fruits -= {'Banana', 'Grapes'}>} Amount)

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

r try this

fr:

LOAD * INLINE [

    fruits,

    Orange

    Banana

    Grapes

    Apple

   

];

new:

LOAD fruits

Where not Match(fruits,'Banana'and 'Apple')  ;

berryandcherry6
Creator II
Creator II
Author

Hi,

Thanks for reply

yes, i am using front end code.

i am using below condition,here how could i apply given logic.So that it shows all campaign except those two.

if(GetSelectedCount(select choice)>0,Fruits Name)

Not applicable

Hi supriya,

Try this i hope it will work

For script end you use where not match([Fruits name],'Banana','Grapes');

Else

In front end you can use this below expression

=sum({<fruits =e($(=fruits={'Banana,'Grapes'}))>} Amount)