missing values in drop down

  • missing values in drop down

    Posted by DSC Communities on April 15, 2020 at 3:15 am
    • Frederick Luk

      Member

      April 15, 2020 at 3:15 AM

      Hi all,

      I have a view (‘[dbo].[retail_data]’) in a SQL server database. It returns 2295 rows.?? One of the column is “City”. When I run this “Distinct(‘[dbo].[retail_data]’,City)” for “items” for a Drop Down box, I got 4 values returned in the drop down. While in fact I have 15 distinct values for “City”. What could be wrong ? Is there a limit for the number of items in a drop down list ?

      Thanks in advance,

      Fred Luk

    • Warren Belz

      Member

      April 15, 2020 at 6:37 AM

      Hi Fred,
      The Distinct() Filer is not Delegable, which means it will return the first 500 (you can increase to 2000) records for client-side processing, so you will only get the Distinct values from this data set.
      Unfortunately, this requires some work-arounds/data management. I generally use reference lists (which normalizing would use anyway) for all items I need to use as drop-down filters.

      ——————————
      Warren Belz
      Rockhampton Qld Australia
      +61 409 315 509
      ——————————
      ——————————————-

    • Frederick Luk

      Member

      April 15, 2020 at 6:30 PM

      HiĀ Warren,

      Thank you for your response. I tried to change the the number of returned record to 2000. I understand that I have to log in to make.powerapps.com and click on Solutions on the navigation panel on the left to go through multiple steps to make the change. But it says there is no solution in my environment and I have to create a new environment ! My app is in my default environment. I guess I just have to figure out some other ways to get the data.

      Thanks,
      Fred

      ——————————
      Frederick Luk
      President
      Santa Clara CA
      4088001224
      ——————————
      ——————————————-

    • Warren Belz

      Member

      April 16, 2020 at 12:08 AM

      OK Fred,
      You can do a multiple collection stages if you can group them with delegable filters in batches of less than 2000 then run Distinct on this (which is does not require Delegation as all processing is client-side).

      ——————————
      Warren Belz
      Rockhampton Qld Australia
      +61 409 315 509
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘missing values in drop down’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!