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 / Help filtering multi-s...
Power Apps
Unanswered

Help filtering multi-select choice field in Dataverse and returning distinct values in Power Apps

(1) ShareShare
ReportReport
Posted on by 4
Hi everyone,

I’m working on a Power Apps app connected to Dataverse and I’m stuck on a filtering formula.

Scenario:
- Table: 'Catalogue produit'
- Field 'TEST ENTITE (Catalogue produit)': multi-select choice field
- Field 'Campagne (Catalogue produit)': choice field (but I also tried as if it were text)
- Variable `varEntité`: contains the entity I want to filter on

Goal:
I want a ComboBox to display all distinct values of 'Campagne (Catalogue produit)' from records where 'TEST ENTITE (Catalogue produit)' contains the value in `varEntité`.

What I tried:

1.
Distinct(
    Filter(
        'Catalogue produit';
        varEntité in Value('TEST ENTITE (Catalogue produit)')
    );
    'Campagne (Catalogue produit)'
)
This runs without errors but returns only one value instead of multiple.

2.
Tried adding `.Value` to 'Campagne (Catalogue produit)' in the Distinct, but I get
"The name isn’t valid. Value isn’t recognized."

3.
Tried using:
!IsEmpty(
    Filter(
        'TEST ENTITE (Catalogue produit)';
        Value = varEntité
    )
)
but I get delegation warnings and still couldn’t make `.Value` work reliably.

Issue:
I can’t find a way to:
- Properly filter a Dataverse multi-select choice field by a variable value (`varEntité`)
- Return all distinct 'Campagne' values from those filtered records without errors

Has anyone solved a similar case? Any example formula that works with Dataverse multi-select choice fields would be greatly appreciated.

Thanks!
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,976 Moderator on at
     
    If you have a Text Value you want to build a Concat string of all the choices IN that particular row
     
    Its late I dont have it up but you would essentially do
     
     
    mysinglevalue in Concat(myChoiceField, Text(Value) & ",") <== believe you need to wrap it in Text, or we can use JSon to do it.
     
    This will take the values in the choice and create a string out of it.
    and then it will check if your single value is in it.
     


    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 519

#2
WarrenBelz Profile Picture

WarrenBelz 439 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 433

Last 30 days Overall leaderboard