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 / Referencing a choice v...
Power Apps
Answered

Referencing a choice value in a collection

(0) ShareShare
ReportReport
Posted on by 22

Hi, 

In formula below I am using DropColumns to remove Coulmns with null results. The formula is working but Service Required is a choice field in a SharePoint List and the CountA does not see the Value selected and result is 0.

How can I reference the Value of Choice selected in 'Service Required' so I can check if it is null?


Screenshots of collection below.

 

ClearCollect(removedNulls
,If(CountA(lastRecords.'Bin Location to be emptied?')=0,DropColumns(lastRecords,'Bin Location to be emptied?')
,If(CountA(lastRecords.'PO Name')=0,DropColumns(lastRecords,'PO Name')
,If(CountA(lastRecords.'Transport Service Requested')=0,DropColumns(lastRecords,'Transport Service Requested')
,If(CountA(lastRecords.'PO Name')=0,DropColumns(lastRecords,'PO Name')
,If(CountA(lastRecords.'Schedule Required')=0,DropColumns(lastRecords,'Schedule Required')
))))))

 

lastRecords Collection

Zenton_0-1715312585610.png

 

Value of field_7 ('Service Required')

Zenton_1-1715312602553.png

Thanks Rodney

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Zenton ,

     

    Please try and get the selected values in the formula:

    ClearCollect(removedNulls,If(CountA(lastRecords.'Bin Location to be emptied?')<=1,DropColumns(lastRecords,'Bin Location to be emptied?')));
    ClearCollect(removedNulls,If(CountA(lastRecords.'Service Required'.Value)<=1,DropColumns(lastRecords,'Service Required')));
    ClearCollect(removedNulls,If(CountA(lastRecords.'PO Name')<=1,DropColumns(lastRecords,'PO Name')))

     

    Best regards,

  • Zenton Profile Picture
    22 on at

    Thanks @v-jefferni I tried adding .Value. but is not valid when referencing a Collection

  • Verified answer
    Zenton Profile Picture
    22 on at

    Does not look like the way I am trying to achieve the solution will work. I will mark as completed

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard