web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery in gallery fil...
Power Apps
Unanswered

Gallery in gallery filter not working properly?

(0) ShareShare
ReportReport
Posted on by 37

Hi all! Maybe you can help med figure out whats going on here, I have a gallery in a gallery and I am seing some items that should not be in the collection. 

erikregiovvarml_2-1712868019986.png

 

I have a vertical gallery cointaining the blue paint thing and then a horizontal gallery inside cointaining text the outer gallery items propety is PersonsLeave and the inner property is ThisItem.leaveReasons. I am trying to filter leaveReason to only contain one element "Beredskap" here is my code for collection the collection. 

ClearCollect(
    PersonsLeave;
    AddColumns(
        Distinct(
            LeaveRow;
            Person
        );
        "IsInView";// Namnet pÃ¥ din nya kolumn
        If(
            true exactin ForAll(
                Sequencelist As seq;
                Text(
                    DateAdd(
                        varfirstDayView2;
                        seq.Value;
                        TimeUnit.Days
                    );
                    "yyyy-mm-dd"
                ) exactin ShowColumns(
                    Filter(
                        LeaveRow;
                        Person = Value
                    );
                    "cr6ea_name"
                )
            );
            true;
            false
        );
        "Avdelning";
        'Office365-användare'.UserProfile(Value).Department;
        "Chef";
        'Office365-användare'.ManagerV2(ThisRecord.Value).mail;
        "leaveReasons";
        ShowColumns(
        Filter(
            LeaveRow;
            Person = Value And LeaveReason = "Beredskap"
        );"cr6ea_leavereason")
    )
);;
The last leaveReasons should only contain "Beredskap" and it seems like it does if I got to Variables section 
erikregiovvarml_3-1712868588978.png

But as you can se in my first screenshoot other values are also displayed.. 

 

Does someone now what going on here?

 

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard