Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Stuck on cascading dropdown which is fetching data from collection

(1) ShareShare
ReportReport
Posted on by 201

Hi Experts,

I am working on a scenario like 3 dropdowns in landing page which should interact each other based on the data in sharepoint list.

DineshK__1-1721037807732.png

Earlier it was 2 dropdown (text type columns) and it was working fine , now i am adding another dropdown Offer type which is choices type column. So I am Stuck on this dropdown task which is fetching data from collection.

Data Source : SharePoint List

 

Collection :

ClearCollect
(
    offertype,
    {Value:"All"}
);
Collect(
    offertype,
    Sort(Distinct(Choices('Delivery Updates'.'Offer Type'),Value),Value,SortOrder.Ascending)
);
 
Dropdown :
If(
    Dropdown1_1.SelectedText.Value = "All" Or IsBlank(Dropdown1_1.SelectedText),
    offertype,
    Filter(
        offertype,
        Value in (Filter('Delivery Updates','Portfolio Head'=Dropdown1_1.SelectedText.Value
        )
        .'Offer Type') Or Value = "All"
    )
)
 
Issue :
DineshK__0-1721037622257.png

 

Offer Type column is a choice type column , so i am suspecting this logic in the formula.

Please help to achieve this.

 

Thanks

DK

  • DineshK_ Profile Picture
    201 on at
    Re: Stuck on cascading dropdown which is fetching data from collection

    @WarrenBelz  In which line pls ?

     

    With(
       {
          _Data:
          Filter(
             'Delivery Updates',
             'Portfolio Head' = Dropdown1_1.SelectedText.Value
          )
       },
       Filter(
          offertype,
          Dropdown1_1.Selected.Value = "All" ||
          Len(Dropdown1_1.Selected.Value) = 0 ||
          offertype in _Data.'Offer Type'
       )
    )
           
  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: Stuck on cascading dropdown which is fetching data from collection

    @DineshK_ ,

     If it is a Choice column, you need offerType.Value

  • DineshK_ Profile Picture
    201 on at
    Re: Stuck on cascading dropdown which is fetching data from collection

    @WarrenBelz  Thanks for your solution 🙂

    I can see the below error still on the dropdown fx .

     

    DineshK__0-1721048579613.png

    Collection :

    DineshK__1-1721048608565.png

    I think it may be related to choice type column in Offer Type ?

  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: Stuck on cascading dropdown which is fetching data from collection

    Hi @DineshK_ ,

    Firstly you can make the collection a bit more efficient

    ClearCollect(
     offertype,
     ["All"],
     Sort(
     Distinct(
     Choices('Delivery Updates'.'Offer Type'),
     Value
     ),
     Value,
     SortOrder.Ascending
     )
    );

    but the main issue here is the name of the field in offertype that you are trying to filter with (replace YourFieldName below)

    With(
     {
     _Data:
     Filter(
     'Delivery Updates',
     'Portfolio Head' = Dropdown1_1.SelectedText.Value
     )
     },
     Filter(
     offertype,
     Dropdown1_1.Selected.Value = "All" || 
     Len(Dropdown1_1.Selected.Value) = 0 ||
     YourFieldName in _Data.'Offer 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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • mmbr1606 Profile Picture
    12,112 Super User 2025 Season 1 on at
    Re: Stuck on cascading dropdown which is fetching data from collection

    hey @DineshK_ 

     

    this video:

    How to create Cascading (Dependent) Dropdowns in Power Apps (youtube.com)

     

    helped me a lot when i began with cascading drop downs.

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard