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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,332)