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 / Using Toggle to filter...
Power Apps
Unanswered

Using Toggle to filter data on Data Table

(1) ShareShare
ReportReport
Posted on by 39

I want to make my toggle switch filter the data on my table. I have the formulas set on my toggle switch but I can't figure out how to connect my table to the toggle. I provided a picture of what I am trying to do. The idea is when the toggle is on it will show one set of data and when the toggle is off it will show another set of data.

Categories:
I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @ddow2788 , You can try this:

     

     

    If(Toggle1.Value = true, Logic for Item, Toggle1.Value = false, Logic for Item)

     

     

    OR

     

     

    If(Toggle1.TrueText = "On", Logic for item, Toggle1.FalseText = "Off", Logic for item)

     

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    The best way to do this would be by actually referencing the toggle's value within the filter statement, something like:

     

    If(
     *YourToggle*.Value,
     Filter(
     *YourDataSource*,
     *Condition1*
     ),
     Filter(
     *YourDataSource*,
     *Condition2*
     )
    )

     

     ^Place this in the table's items property, and replace everything *surrounded by asterisks* with the appropriate values

     

    Hope this helps! 🙂

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard