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 from Sh...
Power Apps
Unanswered

Filter Gallery from Sharepoint List with Column name as Label.Text

(0) ShareShare
ReportReport
Posted on by 76

I have a list with Columns Mon, Tues etc as a Yes/no Column.  

 

The gallery is nested inside one with Mon, Tues, Wed, Thurs, Fri.  I want to display a checkbox next to those days that return true.

 

When I enter Mon in manually it will display.  However, I want to filter using the label 'LabelWeekdayCheck.Text'.  How do I do this?

 

Filter('Check List', LabelWeekdayCheck.Text = true)

 

I have tried 

 

Filter('Check List', text(LabelWeekdayCheck.Text) = true)

 

But as its text it fails.  is there any function for making it see as a column name?

Categories:
I have the same question (0)
  • NeonThunder Profile Picture
    76 on at

    Seems like its not possible to have dynamic column names in Power apps?

     

    Solved: Re: Power Apps nested Gallery, Issue selecting dat... - Power Platform Community (microsoft.com)

  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @NeonThunder ,

     

    Do you want to dynamically reference the column name in Power Apps? I am afraid that there is no directly way to achieve this in Power Apps currently. 

    There is a post in the ideas forum about this that you can vote on.

    Patch - Referance a column name via a variable - Power Platform Community (microsoft.com)

     

    Based on your scenario, here is an alternative for your reference:

    1. Here is my SharePoint list.

    vyujincuimsft_0-1647931891935.png

    2. Select the Gallery and apply the following formula on its items property as:

    Switch(Lower(LabelWeekdayCheck.Text),
     Lower("Mon"),Filter(WeekTest,Mon = true),
     Lower("Tues"),Filter(WeekTest,Tues = true),
     Lower("Wed"),Filter(WeekTest,Wed = true),
     Lower("Thurs"),Filter(WeekTest,Thurs = true),
     Lower("Fri"),Filter(WeekTest,Fri = true),
     WeekTest
    )

    vyujincuimsft_1-1647931982536.png

    Result Screenshots:

    vyujincuimsft_2-1647932014958.png

    vyujincuimsft_3-1647932024577.png

     

    Best Regards,

    Charlie Choi

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