Skip to main content
November 22, 2021
Solved

Where clause in Member Filter Builder

  • November 22, 2021
  • 1 reply
  • 0 views

Source:   Migrated from Champions

I’m trying to use the below member filter to remove only the intercompany accounts. This works, but I lose the indents from using Tree Descendants.

A#410000.TreeDescendants.Where(IsIC = False)

Is there a workaround to remove just the IC accounts while still retaining the indents from tree descendants?

Best answer by Bierenbroodspot

Yes, you can by going down level by level. Per level, you only include the members where the condition IsIC = False. Example:

A#410000.Children.Where(IsIC = False).Children.Where(IsIC = False).Children.Where(IsIC = False)…

1 reply

November 22, 2021

Yes, you can by going down level by level. Per level, you only include the members where the condition IsIC = False. Example:

A#410000.Children.Where(IsIC = False).Children.Where(IsIC = False).Children.Where(IsIC = False)…

November 22, 2021

Perfect - this is exactly what I was hoping for!

December 4, 2021

Can you mark Bierenbroodspot ‘s reply as solution? Thanks