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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard