Mulitple Filters

I am trying to filter on two fields for our organisation chart.

When I filter on one it works fine but when I try to implement 2 filters neither work. Can you help.

Here is my code.

function(itemData){
return itemData["Department"] != "Leaver" || itemData["Office"] != "NonCore" ;
return true;
}

Thanks

Ian

Hi @hutchisoni!
Just a guess: the problem might be in the boolean algebra. Remember that "true or false == true".
Can you try this and see if it works?:

    function(itemData){
return itemData["Department"] != "Leaver" && itemData["Office"] != "NonCore" ;
return true;
}

If it doesn't, can I have a closer look at your data? Please past a screenshot of the list and point to the items that you want to exclude, I'll think of a working filter. Thanks!

That seems to have fixed it. Thanks!