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 / Having Problems with t...
Power Apps
Answered

Having Problems with the Distinct Feature

(0) ShareShare
ReportReport
Posted on by 38
I created a cascading drop-down from where the division selected determines the choice of branches.
 
My current formula works well Filter(AdminAndBudgetData, 'Division Abbreviation' = 'Originator Division'.Selected.Result).'Branch Abbreviation' 
 
However, when I try to make the drop-down choice "Distinct" I get the following error message: "Invalid number of arguments: received 1, expected 2."
 
This is the formula I'm using. Distinct(Filter(AdminAndBudgetData, 'Division Abbreviation' = 'Originator Division'.Selected.Result).'Branch Abbreviation').
 
Does anyone have any suggestions?  Thank you. 
Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    Distinct returns a single column list. the format should be 

    Distinct(datasource, field to return)

    so instead of a period between your filter and field name it should be a comma

    Distinct(Filter(AdminAndBudgetData, 'Division Abbreviation' = 'Originator Division'.Selected.Result),'Branch Abbreviation')

     

  • Verified answer
    ganeshsanap Profile Picture
    1,555 on at

    @jselman, Distinct function expects 2 arguments, Table/Collection and Formula. Check below syntax:

     

    Distinct( Table, Formula )

     

    • Table - Required. Table to evaluate across.
    • Formula - Required. Formula to evaluate for each record.

    So, for your case you need to use it as:

     

    Distinct(Filter(AdminAndBudgetData, 'Division Abbreviation' = 'Originator Division'.Selected.Result), 'Branch Abbreviation')

     

    Documentation: Distinct function in Power Apps


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

  • jselman Profile Picture
    38 on at

    Thank you so much. This fixed my problem.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard