cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anonymia25
Helper III
Helper III

Displaying all item and filter in a gallery

Hi everyone,

On the main screen I have created a gallery filled with 12 Text label that represent values for each month. 

OnSelect property of the label:

Select(Parent);
Navigate(SalesScreen, ScreenTransition.None, {displayItem:ThisItem, selectMonth:"7"});

 
OnVisible property of SaleScreen:

Set(BudgetMonthRecord, LookUp(displayItem.'Budget Months', Month=selectMonth));


Item
property of SaleGallery:

BudgetMonthRecord.'Sale Item'


Now on the main galleryI have created a button to navigate to the SaleScreen and I wanted to display all item instead of filtering to the specific month. I tried to combine If and Lookup but somehow its not working.
An easy way would probably create a new gallery but I prefer to use the same one. (Using dataverse as my datasource)
As always help is appreciated. Thanks! 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
anonymia25
Helper III
Helper III

Turns out it was only a simple issue and I have fixed the issue by setting the months to "All".

 

If(selectMonth = "All" , displayItem.'Sale Items', BudgetMonthRecord.'Sale Items')

 

View solution in original post

1 REPLY 1
anonymia25
Helper III
Helper III

Turns out it was only a simple issue and I have fixed the issue by setting the months to "All".

 

If(selectMonth = "All" , displayItem.'Sale Items', BudgetMonthRecord.'Sale Items')

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,015)