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

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
WarrenBelz
Super User III
Super User III

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
WarrenBelz
Super User III
Super User III

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

Thank you soooo much, it worked perfectly 🙂  🙂

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (20,642)