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 - drop ...
Power Apps
Answered

Filter Gallery - drop down and calendar

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hi

 

I need help with the formula, I'm having difficulty adapting a formula.

 

First, the data source is in Sharepoint (List), there are 5 columns, it's called CHP.

 

Imagem 1.png

And PowerApps, has a calendar, gallery and form.

 

Imagem 2.png

I am trying formula with the gallery, I managed to filter the list by date, the formula is:

 

SortByColumns(Filter(CHP;Text('Data do Inicio';DateTimeFormat.ShortDate) = Text(_dateSelected;DateTimeFormat.ShortDate)); "Data_x0020_do_x0020_Inicio")

I am also trying 1 more filter for dropdown, which is name list, wanted to filter by name to see the list.

 

SortByColumns(Filter(CHP;Text('Data do Inicio';DateTimeFormat.ShortDate) = Text(_dateSelected;DateTimeFormat.ShortDate)); "Data_x0020_do_x0020_Inicio");; Filter(CHP; ‘Usuários’ = dropdown2.Selected.Value)

 

Appeared as an error, could you help me how to filter the dated hold?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Help

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    What is the column type of Usuários? 

     

    If it's a text column, then the formula should be:

    SortByColumns(Filter(CHP;Text('Data do Inicio';DateTimeFormat.ShortDate) = Text(_dateSelected;DateTimeFormat.ShortDate);‘Usuários’ = dropdown2.Selected.Value); "Data_x0020_do_x0020_Inicio")

    If it's a person and group column, then the formula should be:

     

    SortByColumns(Filter(CHP;Text('Data do Inicio';DateTimeFormat.ShortDate) = Text(_dateSelected;DateTimeFormat.ShortDate);‘Usuários’.DisplayName = dropdown2.Selected.Value); "Data_x0020_do_x0020_Inicio")

     

     

    Regards,

    Mona

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard