Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Filtering

(1) ShareShare
ReportReport
Posted on by 38
Hello
 
I'd like to filter the 'Risk Register' table (SP list) to only include rows where the 'Risk Reporting Level' is "Level 1" and the 'Risk Status' is "Open", and then extract distinct values from the 'Title' column shown in my dropdown. 
 
Note, the 'Risk Reporting Level' and 'Risk Status' columns are choice type columns.
 
Here is my formula:
 
Distinct(Filter('Risk Register', 'Risk Reporting Level'= "Level 1" && 'Risk Status'= "Open"),Title), {Result: ThisRecord.Value}),Result)
 
The errors in the expression are due to attempting to compare a record type ('Risk Reporting Level' and 'Risk Status') with a text type (StringLiteral("Level 1 - Corporate") and StringLiteral("Open")). This is causing the unexpected characters and incompatible types errors.
 
Any help on how to correct it is hugely appreciated.
 
Thank you
EJ
  • EJ_271 Profile Picture
    38 on at
    Filtering
    Thank you Kalel
     
    I was adding the ".Value" in the wrong place. 

    Best regards
    EJ
     
     
     
     
  • Kalel_Lucas Profile Picture
    165 on at
    Filtering
    Hello EJ,
     
    Because those columns of yours are Choice type columns, if you want to use them to compare with String/Text types, you need to add ".Value" at the end.
    So in your situation, you need to utilize:
    Distinct(Filter('Risk Register', 'Risk Reporting Level'.Value= "Level 1" && 'Risk Status'.Value= "Open"),Title), {Result: ThisRecord.Value}),Result)
    Hope it helps,
    Kalel

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard