77
Views
2
Comments
Solved
Group Filter in an Aggregate
Application Type
Reactive
Service Studio Version
11.54.86 (Build 63845)

I already have a working SQL Query of what i pretend to do, i was just trying to reproduce the same result in an aggregate.

The problem is that i would need this group filter to work properly in the aggregate :

Because if NumGenresForFilter = 0, i want it to show all movies, if not, only the movies with genreCount = NumGenresForFilter.

And then i discovered that in every aggregate that has groups, if you create one (group filter) with the condition "True", it doesnt show any records, i would like to know if this is suppose to happen and if i can do something about it or if there is something that i am missing.


Tell me if you need any files of my app.


2024-09-12 02-43-38
Deepsagar Dubey
Solution

Hello @Hélder Lopes 

The filter condition should be as usual, Suppose your grouped attribute is genreCount  and you want to filter with NumGenresForFilter,

So the condition should be -

NumGenresForFilter = 0 or genreCount  = NumGenresForFilter


I hope it'll help you.

Thanks
Deep

2024-12-02 13-16-47
Vipin Yadav

Hi,

You can add one condition for movie title or ReleaseDate

If(Client.MovieNameOrPlotFilter="",True,Movie.Title like "%"+ Client.MovieNameOrPlotFilter +"%" or Movie.PlotSummary like "%"+ Client.MovieNameOrPlotFilter +"%")

If(Client.FromDate=NullDate(), True, Movie.ReleaseDate >= Client.FromDate)

2024-09-12 02-43-38
Deepsagar Dubey
Solution

Hello @Hélder Lopes 

The filter condition should be as usual, Suppose your grouped attribute is genreCount  and you want to filter with NumGenresForFilter,

So the condition should be -

NumGenresForFilter = 0 or genreCount  = NumGenresForFilter


I hope it'll help you.

Thanks
Deep

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.