cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Impactful Individual
Impactful Individual

FILTER TWO GALLERIES


FILTER TWO GALLERIES TO VERIFY IF THE ITEM EXISTS IN A MAIN GALLERY

 

HERE MY LOGIC: 

 

If(
    CountRows(
        Filter(
            Gallery2_1.AllItems,
            Text(emailreservation.Text) = varInfoReservation.Email && Text(coursenamegallerydateandinfo.Text) = Text(nameresevationgalery.Text)
        )
    ) > 0 || CountRows(
        Filter(
            Gallery2.AllItems,
            Text(Subtitle2_5.Text) = varInfoAdmin.Email && Text(coursenameadmin.Text) = Text(coursenamegallerydateandinfo.Text)
        )
    ) > 0,
    true,
    false
)
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Gorilla_8,

 

Do you want to appear an error pop up after the check?

Could you please tell me did the logic report error? It seems to be no problem with it.

I assume you have an Button to check whether any items in one of the two galleries that are in the main gallery.

I made a test on my side, please try the following workaround.

Set the OnSelect property of Button as following:

Set(popup,If(
    CountRows(
        Filter(
            Gallery2_1.AllItems,
            Text(emailreservation.Text) = varInfoReservation.Email && Text(coursenamegallerydateandinfo.Text) = Text(nameresevationgalery.Text)
        )
    ) > 0 || CountRows(
        Filter(
            Gallery2.AllItems,
            Text(Subtitle2_5.Text) = varInfoAdmin.Email && Text(coursenameadmin.Text) = Text(coursenamegallerydateandinfo.Text)
        )
    ) > 0,
    true,
    false
)
)

I group a pop up like this.

vzhichen_0-1634804633606.png vzhichen_1-1634804633608.png

Set the Visible property of Group1 as following:

popup

Set the OnSelect property of OK as following:

Set(popup,false)

vzhichen_2-1634804633609.jpeg  vzhichen_3-1634804633611.jpeg

This may be able to achieve the pop-up function.

 

Best Regards,

Zhi Chen

View solution in original post

5 REPLIES 5
Gorilla_8
Impactful Individual
Impactful Individual

Somebody? 

v-chenzhi
Community Support
Community Support

Hi @Gorilla_8,

 

Do you want to determine whether there are wanted records in the two galleries?

Could you please share more details about your scenario?

1.What is your real need, please describe more.

2.There seems to be no problem with your logic, did it report an error?

 

Best Regards,

Zhi Chen

Gorilla_8
Impactful Individual
Impactful Individual

Hi @v-chenzhi 

 

I just need it to filter three galleries, 

 

I have 3 galleries, and they are collections...

 

Only two collections will be filtered to a gallery...

 

I would like to know if there are any items in one of the two galleries that are in the main gallery

 

So, an error pop up appears

Hi @Gorilla_8,

 

Do you want to appear an error pop up after the check?

Could you please tell me did the logic report error? It seems to be no problem with it.

I assume you have an Button to check whether any items in one of the two galleries that are in the main gallery.

I made a test on my side, please try the following workaround.

Set the OnSelect property of Button as following:

Set(popup,If(
    CountRows(
        Filter(
            Gallery2_1.AllItems,
            Text(emailreservation.Text) = varInfoReservation.Email && Text(coursenamegallerydateandinfo.Text) = Text(nameresevationgalery.Text)
        )
    ) > 0 || CountRows(
        Filter(
            Gallery2.AllItems,
            Text(Subtitle2_5.Text) = varInfoAdmin.Email && Text(coursenameadmin.Text) = Text(coursenamegallerydateandinfo.Text)
        )
    ) > 0,
    true,
    false
)
)

I group a pop up like this.

vzhichen_0-1634804633606.png vzhichen_1-1634804633608.png

Set the Visible property of Group1 as following:

popup

Set the OnSelect property of OK as following:

Set(popup,false)

vzhichen_2-1634804633609.jpeg  vzhichen_3-1634804633611.jpeg

This may be able to achieve the pop-up function.

 

Best Regards,

Zhi Chen

View solution in original post

Gorilla_8
Impactful Individual
Impactful Individual

@v-chenzhi 

 

Thank you very much!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,756)