web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DISTINCT Function in P...
Power Apps
Answered

DISTINCT Function in PowerApps

(0) ShareShare
ReportReport
Posted on by 164

I have a on premise SQL table where we have 16000 records.

 

There is a column Named "ApplicationType".

We want to populate a dropdown in PowerApps with unique Application Type values that are there in that table.

 

So i used below query to fetch distinct Application Type values.

Distinct('[dbo].[SpecialProjects]',ApplicationType);

 

Issue : 

Since PowerApp fetches 200 records at one time so this formula retrieves distinct values only for those 200 records.

This way i get only 1 unique ApplicationType values out of 3.

 

Any way by which we can get all distinct values of a column from SQL table?

 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,262 Super User 2026 Season 1 on at

    Hi @manjotsingh057

    The way to do this is to create a SQL Server View that returns your distinct values.

    https://powerusers.microsoft.com/t5/General-Discussion/Retrieve-distinct-values-over-a-column-from-SQL-Server-data/td-p/171409

    Post back here if you need more specific details on how to do this.

  • manjotsingh057 Profile Picture
    164 on at

    @timl

    Thanks for that post.

    But if i want to create a cascaded drop downs, Will that be possible based on this logic ? Since i will not be knowing what all values would be there in next set of results that would be Loaded by PowerApps ?

     

    Scenerio:

    1.  Page has multiple drop down fields which filter the results.
    2. You select value from drop down 1 and based on the results received drop down 2 values should be filtered as well.
    3. Once you select drop down 2 values then again following same logic.

     

    Thanks in Advance !!

     

     

  • Verified answer
    timl Profile Picture
    37,262 Super User 2026 Season 1 on at

    Hi @manjotsingh057

    Yes, it's possible to build cascading drop downs with SQL Views.

    My post towards the end of this thread includes some sample formula.

    https://powerusers.microsoft.com/t5/General-Discussion/Slice-Large-SQL-Table-By-Multiple-Parameters/td-p/176328/page/2

  • manjotsingh057 Profile Picture
    164 on at

    Thanks a lot @timl

    That works.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard