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 / Change dropdown if all...
Power Apps
Answered

Change dropdown if all toggle = yes

(0) ShareShare
ReportReport
Posted on by 7

Hello,

 

is it possible to control a dropdown choice field if all toggles = yes?

 

for example i have 4 x toggles and a choice field below that is in displaymode.view

 

 Toggle.jpg

 

if they all = yes set as "complete" 

if one is not set as yes set to "pending"

if all are set to no set as "not started"

 

Hope somone can help 🙂

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ash13 Profile Picture
    576 on at

    Hi @Mulhern23 

    For a Dropdown control with Items: 

    ["Completed","Test","Pending"]

    The Default:

     

    With(
     {
     _Data: [
     Toggle1.Value,
     Toggle2.Value,
     Toggle3.Value,
     Toggle4.Value
     ]
     },
     If( // count where all true
     CountIf(
     _Data,
     Value
     ) = CountRows(_Data),
     "Completed",
     //count where all false
     CountIf(
     _Data,
     !Value
     ) = CountRows(_Data),
     "Not Started",
     //else
     "Pending"
     )
    )

     

     

    We'll maybe need to modify this slightly if the items property is different, or using a combobox instead of dropdown. Let me know if this works 🙂

  • Mulhern23 Profile Picture
    7 on at

    Perfect works like a charm on a dropdown.

     

    is there any way of working it with a SP dropdown? or would I now need to use patch to right the data back?

     

     

  • Ash13 Profile Picture
    576 on at

    Do you mean within an EditForm? This would be a combobox and I'm assuming the column is a choices column.

    This time. the formula should be written in the DefaultSelectedItems property. The Items of the combobox is probably Choices(SharePointList.ColumnName). For the DefaultSelectedItems:

    With(
     {
     _Data: [
     Toggle1.Value,
     Toggle2.Value,
     Toggle3.Value,
     Toggle4.Value
     ]
     },
     If( // count where all true
     CountIf(
     _Data,
     Value
     ) = CountRows(_Data),
     {Value: "Completed"},
     //count where all false
     CountIf(
     _Data,
     !Value
     ) = CountRows(_Data),
     {Value: "Not Started"},
     //else
     {Value: "Pending"}
     )
    )

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard