cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

How to compare Dropdown with Excel table colum

Hello PA-community,

 

i have a question to one of my apps. I have a Excel table with some colums. In one of my screens, i created a dropdown field. With a function i want to compare a specific colum of the table(all rows) with a selected value in the dropdown. If the comparisson is true, the row should be visibel in the gallary. (Over the dropdown i want only show the rows in the gallary which fits to the value from the dropdown.)

I tried compoarison with the excel table and also transformed the table in a collection, but it still dont compare..

 

Hope someone can help me 🙂

 

Best regards,

CanD

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How to compare Dropdown with Excel table colum

Hi @CanD ,

The Items of the gallery would be something like

 

Filter(
   YourListName,
   YourColumnName=YourDropDownName,Selected.xxxx
)

 

where xxxx depends on the Items property of the control. When you type YourControlName.Selected. (note second dot), valid values will come up underneath. For some guidance of what they mean: 

  • If your Items are Choices(ListName.FieldName) - a Choices or Lookup field), the reference will be YourControlName.Selected.Value
  • If they are Distinct( . . .  .), it will be YourControlName.Selected.Result
  • The other option is when they are based on a field value in a list (other than Distinct), then it will be YourControlName.Selected.FieldName (actual field name)

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: How to compare Dropdown with Excel table colum

Hi @CanD ,

The Items of the gallery would be something like

 

Filter(
   YourListName,
   YourColumnName=YourDropDownName,Selected.xxxx
)

 

where xxxx depends on the Items property of the control. When you type YourControlName.Selected. (note second dot), valid values will come up underneath. For some guidance of what they mean: 

  • If your Items are Choices(ListName.FieldName) - a Choices or Lookup field), the reference will be YourControlName.Selected.Value
  • If they are Distinct( . . .  .), it will be YourControlName.Selected.Result
  • The other option is when they are based on a field value in a list (other than Distinct), then it will be YourControlName.Selected.FieldName (actual field name)

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

Highlighted
Frequent Visitor

Re: How to compare Dropdown with Excel table colum

Thank you soooo much, it worked perfectly 🙂  🙂

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,716)