cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Neil6
Helper I
Helper I

Incomplete dropdown values

Hi Everyone,

 

I have a drop down control on the app that I am currently developing. And my issue with this drop down is that it doesn't seem to get all the values from the SQL server database.

 

Here is a screenshot of the drop down control:

Neil6_0-1594724347279.png

As you can see, there are only two values present, when it should be 3. What's missing is the "Probationary" value.

 

My script on the items  property is simple, it queries the Employment_type column and I used the Distinct function to filter out duplicates. Here is the screenshot of the Items property:

Neil6_1-1594724479229.png

 

I only tried refreshing my data source, still no luck.

 

Hope you can help me solve my problem.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Neil6 ,

I think you need 

DataCardValue4_1.Selected.Employment_Type

 

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

6 REPLIES 6
WarrenBelz
Super User III
Super User III

HI @Neil6 ,

The Distinct() Filter is not Delegable, so I would assume that the missing item is not present in the first 500 (your can increase this to 2000 in Advanced Settings) records.

If you only are going to have limited options of values, then hard-code them

["Rsgular","Third Party","Probationary"]

 

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.

Hi @WarrenBelz ,

 

I tried to query the top 500 on my data source and the value "Probationary" is included. Also, which property in the advanced settings should I change?

 

Best regards

Neil6
Helper I
Helper I

I created a view on SQL which queries the column Employment_type and filters it. It turns out I have 4 distinct values. Though they are now all present in my drop down control. however, i still have an error on the update property.

 

Neil6_0-1594728546424.png

 

What should be in the update property of my Drop down control?

 

Hi @Neil6 ,

What type of field are you writing back to, and what is the Items property of the drop-down and what is the error message?

Hi @WarrenBelz 

 

The data type is varchar.

 

Here is the Items property. I'm calling a view from SQL database.

Sort('[dbo].[DrpDwn_Emp_Type]', Employment_Type,Ascending)

 

Here is the error: "Name isn't valid. This identifier isn't recognized"

Neil6_0-1594775549461.png

 

Hi @Neil6 ,

I think you need 

DataCardValue4_1.Selected.Employment_Type

 

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

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

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (3,018)