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 / Clear Multiselect fiel...
Power Apps
Suggested Answer

Clear Multiselect field in Dataverse from Power fx

(0) ShareShare
ReportReport
Posted on by 13
In a Dataverse table, I have a Multi select choice column named 'Stores'. And it is optional. 
 
I have gallery that shows this table and it's fields.
 
I have a Text label that has Concat(ThisItem.'Stores', Text(Value)," ,") that lists all the Stores selected.
 
I also have a X icon next to it. On the OnSelect property of this x icon I have the following power fx code:
 
Patch(
    Products,
    ThisItem,
    {
        'Stores':Blank()
    }
)
 
But code is not working. I cannot get it to blank all the choices in the Stores column. I have also tried 'Stores':[]. But it doesn't work.
 
How can I blank all the choices in this Stores column?
 
Thank you.
I have the same question (0)
  • Suggested answer
    CU09021538-0 Profile Picture
    2 on at
    I know this must be late, but the frustration that i went through to find the answer and now that i came across it, I must share. The way to do this is the following 
     
    Collect(col_Empty, Blank());
    Patch(Products, ThisItem, {'Stores': col_Empty})
     
    Basically you need to set a collection to Blank() as the Stores field is expecting a table data type while passing Blank() directly does not match the table data type required by the Choices.
     
    This must be done if Stores column is a Choices column in your Dataverse table. You're welcome :)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard