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 / Filter gallery data.
Power Apps
Unanswered

Filter gallery data.

(0) ShareShare
ReportReport
Posted on by 555

Hello, 

I am trying to filter a gallery based on the data present in a multiselect lookup column and i have error. Powerapps can't conver text to a table.

I have 2 sharepoint lists.

List 1- Has a multiselect look up column Assigned courses linked to title column of list 2. 

 

List 2 - Has a title all the courses and title column is a single line text. 

 

In gallery i was trying to filter list 2 courses based on the user logged in and display only the courses assigned to users in Assigned courses coulmn, but i get error. 

Cr1t_0-1694160415924.png

 

Filter(Training,Title in Filter('[Data]-Competency Assessment',Title = User().Email).'Assigned courses')

Please help. thank you.

 

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

    Hi @Cr1t ,

     

    If you only want the courses assigned to current logged in user, why not filter list 1 directly?

    Filter('[Data]-Competency Assessment',Title = User().Email).'Assigned courses'.Value

     

    Best regards,

  • Chris-D Profile Picture
    1,246 on at

    Hi @Cr1t, I'm not sure why you're getting that error but I think what you need here is a Distinct(). 

     

    // This will return a list of ALL values in a column
    Filter( Data, ...).Column
    
    // This will return a list of unique values in a column
    Distinct( Data, Column)

     

    Try wrapping your second Filter in a Distinct:

    Filter(
     Training,
     Title in Distinct(
     Filter( '[Data]-Competency Assessment', Title = User().Email),
     'Assigned courses'
     )
    )
  • Cr1t Profile Picture
    555 on at

    @v-jefferni 
    Thank you very much i actually tried it and i get error . value isn't recognized. 

    Cr1t_0-1694161564909.png

    If i remove the .value, the output comes as a table and to display table. 

  • Cr1t Profile Picture
    555 on at

    @Chris-D Thanks for replying, still getting the same error. 

    Cr1t_1-1694161731905.png

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Cr1t ,

     

    The error "can't convert data type" is due to the multiple selections LookUp column in list1. If you have unique user Emails in list1 Title column, then the formula is:

     

    LookUp('[Data]-Competency Assessment',Title = User().Email).'Assigned courses'.Value

     

    The formula will output all courses assigned to the specific user.

     

    Best regards,

  • Cr1t Profile Picture
    555 on at

    @v-jefferni 
    Thank you, the code you provided works for me.

  • Chris-D Profile Picture
    1,246 on at

    I see what Jeffer Ni was getting at now. I missed that your LookUp was a multi choice column. 

     

    Use Jeffer's solution along with your Filter:

    Filter(
     Training,
     Title in Lookup( '[Data]-Competency Assessment', Title = User().Email).'Assigned courses'.Value
    )

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard