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 / Add filter on a canvas...
Power Apps
Answered

Add filter on a canvas app

(0) ShareShare
ReportReport
Posted on by 61

Hi,

I want to do something pretty basic, but I am really new in canvas app.

I have tables in CDS, I did a model driven app that works fine but I want now to build a canvas app.

I have two tables:

  • Bet
  • Games

A bet can contain many games, and there is relationship between them.

 

I generated a canvas app.

On the browse screen, I can click on  a Bet. Then, it opens the details screen where it shows the Bet Id, and I add a gallery at the bottom where I want to display all the games related to this Bet id.

I tried so many filters, but none of them worked. So I guess I always use a bad syntax...

canvas1.png

 

Can you tell me what is the good syntax for this?

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

    Try this:

     

    Filter(Games, Bet = 'YourBetGallery'.Selected.BetID)

     

    Works with me, but I used SharePoint -list instead.

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @LauM ,

    I guess what you need is:

    Filter(Games,Bet=ThisItem.BetID)

     

    Hope it helps !

  • LauM Profile Picture
    61 on at

    @Samih , It doesn't work. Here is the message:

    canvas2.png

  • LauM Profile Picture
    61 on at

    Hi @gabibalaban ,

     

    this solution doesn't work either, see the message:

    LauM_0-1605618455988.png

     

     

     

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Auch sorry ... where were my thoughts ? Please go to Item property of the form and use it inside formula: 

    Filter( Games, Bet = myItemProperty.BetID )

  • LauM Profile Picture
    61 on at

    @gabibalaban ,

    I did this (see my printscreeen), but I am not sure I understood well what you told me about the Item property of the details form... Did I do the right thing?

    Now, I see all games, not only games related to this bet.

     

    canvas4.png

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @LauM 

    What I meant to say is to copy the text from item property (as it was) and adapt my formula with the text you found there by replacing myItemProperty from my formula with that text.

    The Item property of a form represent the current record from datasource to whom the form is "connected".

     

  • LauM Profile Picture
    61 on at

    @gabibalaban 

    I hope I understood well...

    Here what I did, and it still doesn't work.. I should see two records for this bet

    Item property of the formItem property of the formadd this text in the suggested formulaadd this text in the suggested formula

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Yes, you understood correctly, it seems that I have some problems to undestand your background list. 

    I guess that the correct formula is:

    Filter( Games, Bet = BrowseGallery1.Selected.Bet)

    or 

    Filter( Games, Bet = BrowseGallery1.Selected.'Bet (crceb_bet)' )

    after you type the point please check the autofill.

  • LauM Profile Picture
    61 on at

    @gabibalaban ,

     

    after the point the autofill proposes Bet (crceb_bet), but it doesn't work 😞

    1.png

     

    2.png

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard