Skip to main content
bradley
Expert ⭐️
Feb 5, 2021 7:07 PM UTC
New Idea

Conditional Statements in Filters

Can we get conditional (If/else if/else) statements in filters? AND and OR logic is helpful, but it would be great to have conditional logic as well.

 

It is true that some if statements can be handled with some fancy and/or groupings, but this would allow greater flexibility on what to include or exclude.

 

Having a report that would allow me to say:

 

IF (X and Y) ELSE (A or B) would be fantastic.

 

That is a small use case example, but the implications would be much more value for anwhere you use logic to create something: reports (regular and data designer), filters, rules, queries, programs you name it.

 

And to be clear, I’m talking about adding this in addition to case logic for formula and conditional fields.

17 replies

rakesh
Gainsight Employee ⭐️
Lets put your data to work!
Jan 7, 2022 6:01 AM UTC

Hi All,

Thanks @anirbandutta for pulling me in

This capability is available in Data Prep of Gainsight (Data Designer, Rules Engine, JO). Case statement does exactly this. I do not believe we have it in our plan to add this capability to filters that are available in every product area (like cockpit, timeline, etc.)

Adding @Azad  for reporting point of view

cc:  @PavanCh 

Translate
bradley
bradleyAuthor
Expert ⭐️
Jan 7, 2022 5:11 PM UTC

Hi All,

Thanks @anirbandutta for pulling me in

This capability is available in Data Prep of Gainsight (Data Designer, Rules Engine, JO). Case statement does exactly this. I do not believe we have it in our plan to add this capability to filters that are available in every product area (like cockpit, timeline, etc.)

Adding @Azad  for reporting point of view

cc:  @PavanCh 

Yes, we do have it in case fields, but that populates a field based on criteria. Having this ability in logic for filters better allows us to populate a data set based on criteria.

Translate
bradley
bradleyAuthor
Expert ⭐️
May 9, 2023 5:29 PM UTC

Hi All,

Thanks @anirbandutta for pulling me in

This capability is available in Data Prep of Gainsight (Data Designer, Rules Engine, JO). Case statement does exactly this. I do not believe we have it in our plan to add this capability to filters that are available in every product area (like cockpit, timeline, etc.)

Adding @Azad  for reporting point of view

cc:  @PavanCh 

Yes, we do have it in case fields, but that populates a field based on criteria. Having this ability in logic for filters better allows us to populate a data set based on criteria.

Any follow up to this?

Translate
bradley
bradleyAuthor
Expert ⭐️
May 9, 2023 5:30 PM UTC

@anirbandutta couldn’t edit my comment, but can we remove the “response from customer flag?” I was the last one responding a year ago here. TY :)

Translate
anirbandutta
Expert ⭐️
May 11, 2023 7:49 AM UTC
Response from Customer→Acknowledged
Translate
It's an opportunity for engagement
andreammelde
Helper ⭐️⭐️
May 11, 2023 2:48 PM UTC

This would be great in data management as well for calculated fields, so we do not have to run rules to apply some logic based on values already in the object

Translate
Andrea Carroll
dayn.johnson
VIP ⭐️⭐️⭐️⭐️⭐️
Feb 29, 2024 2:26 PM UTC

This would be amazing. 😀

Especially in cases such as JO queries, it would cut down on build time if we didn’t need to run a transformation step and build a case expression just to apply logic to one field.

Translate
Staff CS Content & Comms Manager, 2x Gainsight CS Ops Product Council Member