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 / Expected Record Value
Power Apps
Answered

Expected Record Value

(0) ShareShare
ReportReport
Posted on by 22

Hi all,

 

I have 6 dropdown boxes that should automatically update a Combobox, where for the dropdown boxes I have 0,1 and NA the same for the combobox. For the dropdown boxes, i want that if 2 or more are answered with 0 the combobox is automatically updated to be 0, otherwise 1 and I also want the default to be NA. 

 

Thus far I have tried doing a variable and in the default of the combobox doing the following if statement:

If(
CountIf(questionValuesList, "0") >= 2,
"0",
If(
CountIf(questionValuesList, "0") = 0,
"NA",
"1"
)
)

however I keep getting an error where its stating Expected Record value and I am truly not sure where I am going wrong. Any assistance will be truly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @AP1979 ,

     

    May I ask what is "questionValuesList" in your formula?

     

    Let us assume it is the collection of the results of six dropdowns. 

    vhanytianmsft_0-1690772732054.png

     

    Items of Combo Box:

    vhanytianmsft_1-1690772756920.png

     

    DefaultSelectedItems:

    If(
    CountIf(questionValuesList,Value = "0") >= 2,
    ["0"],
    If(
    CountIf(questionValuesList,Value = "0") = 0,
    ["NA"],
    ["1"]
    )
    )

    vhanytianmsft_2-1690772820432.png

    Hope this will help you,

    Best Regards,
    Tina

  • AP1979 Profile Picture
    22 on at

    Hi  v-hanytian-msft
    the questionValuesList is just the name of my variable.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard