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 / Filter Gallery from Sh...
Power Apps
Answered

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:
  • 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard