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 / Items Function of Gall...
Power Apps
Unanswered

Items Function of Gallery For Datverse tabel as Dtasource

(1) ShareShare
ReportReport
Posted on by

HI Everyone,

 

I have a gallery in my PowerApps, Dataverse table as the DataSource 

 

Filter(

    'Risk Lambard Lists',

    'Risk_ID '.'RISK ID' = VarBootomUpRiskID,

    'Control Type (Risk Lambard Lists)'.Detective = "Detective" && 'Presently In Place' = true

)
 
it is showing an error in the not equal Part <>
Control Type is a Choice column in my Dataverse Table, I want to filter the gallery based on the control type 
if the control type Value is <> Detective and Presently in place is true, only those details should show in Gallery 
 
But is showing an error Incompatible types for comparison. These types can't be compared: OptionSetValue (Control Type (Risk Lambard Lists)), Text.
 
I tried adding Value and text also , then aslo showing the errror 
 

 

Danny_Dicaprio_1-1719919143731.png

 

 
Could anypne please help me to fix this isssue
Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @Danny_Dicaprio ,

    try this:

     

    Filter(
     'Risk Lambard Lists',
     'Risk_ID '.'RISK ID' = VarBootomUpRiskID,
     'Control Type (Risk Lambard Lists)'.Value <> {Value:"Detective"} && 'Presently In Place' = true
    )

     

    try using this: <> {Value:"Detective"}

  • Danny_Dicaprio Profile Picture
    on at

    Hi thanks for the response  @anandm08 

     

    Still Iam facing the same issue

     

    Danny_Dicaprio_0-1719978197213.png

    it is showing Name isn't valid value isn't recognized 

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    @Danny_Dicaprio  what is this 

    'Control Type (Risk Lambard Lists)'

    is it a column name with data type of choices? 

  • Danny_Dicaprio Profile Picture
    on at

    Thanks for the continued support @anandm08 

     

    I fixed the issue the items Property , yes Control Type is a Choice column

     

    since my datasource is dataverse tables , the choice values shows in a different way 

     

    Filter(
    'Risk Lambard Lists',
    'Bottumup Risk_ID '.'RISK ID' = VarBootomUpRiskID,
    'Control Type' <> 'Control Type (Risk Lambard Lists)'.Detective && 'Presently In Place' = true
    )



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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard