Skip to main content
New Idea

Conditional Statements in Filters

Related products:None
teena
zach_davis
samantha_braastad
kristin_f3c469
robert_johnson_c15170
  • teena
    teena
  • zach_davis
    zach_davis
  • samantha_braastad
    samantha_braastad
  • kristin_f3c469
    kristin_f3c469
  • robert_johnson_c15170
    robert_johnson_c15170

bradley

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

sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • 3727 replies
  • February 8, 2021

@bradley I will confirm with the product team and get back to you . Thanks!


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • February 8, 2021

Thank you @sai_ram for looking after my many requests :)


sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • 3727 replies
  • February 10, 2021
bradleymcg wrote:

Thank you @sai_ram for looking after my many requests :)

@bradley You are welcome!! 


rakesh
Forum|alt.badge.img+1
  • Lets put your data to work!
  • 835 replies
  • February 12, 2021

Hi @bradley  I had a conversation with the architect team and the ideal engineering solution is us enhancing formula capability to solve this directly than additional logic parsing in filters. To check that this is what you are asking, can you share some of the usecases that you planned to solve via these capabilities? I am also interested in understanding they mostly Reporting usecases or Data Prep use cases.


sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • 3727 replies
  • February 16, 2021

@bradley we are waiting for your inputs here.


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • February 16, 2021

@sai_ram Sorry, didn’t know I missed my SLA on this one :)

 

The basic idea that would really encompass the use of conditional filters would be the same, which means I’m basically explaining what a conditional filter does, which to me seems a bit unnecessary. 

 

This would be to allow you to have one set of filter criteria for one type of data set, and another for a second type of data set. If I have Customer Group A and customer group B, I may want to only display Group A customers that have a certain value in Field 1, whereas customers in Group B I want to show if they have a different value in Field 1 but have them both on the same report.

 

To jumpstart the imagination, here is a real-world example: You have SMB, MM and Enterprise customers and you want a report to show accounts that haven’t been contacted (e.g. have no Timeline entry) in a certain time frame, but that time frame is different for each client group. Furthermore, you have an exclusion you only want to apply to your Enterprise customers.


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • April 20, 2021

@sai_ram Any update on this? It’s flagged as response from customer but I’m the last one on the thread :). I’d also like to upgrade it to ask for logic with rules as well.

 

 


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • September 21, 2021

@Cornelia any update on this:)


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • January 4, 2022

@anirbandutta any update on this?


anirbandutta
Forum|alt.badge.img+2
  • Expert ⭐️
  • 1804 replies
  • January 7, 2022

@rakesh , pl share latest on this thread


rakesh
Forum|alt.badge.img+1
  • Lets put your data to work!
  • 835 replies
  • January 7, 2022

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 


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • January 7, 2022
rakesh wrote:

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.


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • May 9, 2023
bradley wrote:
rakesh wrote:

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?


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1129 replies
  • May 9, 2023

@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 :)


anirbandutta
Forum|alt.badge.img+2
  • Expert ⭐️
  • 1804 replies
  • May 11, 2023
Response from CustomerAcknowledged

andreammelde
Forum|alt.badge.img+3
  • Helper ⭐️⭐️
  • 367 replies
  • May 11, 2023

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


dayn.johnson
Forum|alt.badge.img+6
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 647 replies
  • February 29, 2024

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings