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 / trouble with code; fil...
Power Apps
Answered

trouble with code; filter with addcolumns and group by

(0) ShareShare
ReportReport
Posted on by 30

Hello, i have some trouble with a part of my code.
Maybe it's something super easy, maybe not.

Some context before explanations:

i'm trying to create an app for my IT support teams. it's an app for referencing some actions.
It work, so good so far. 
My boss would like different a view with different chart to control the amount of our action.
And now he would like to control the amount by time. 

So my code for my charts it's like this : 

 

 

AddColumns(
 GroupBy(
 AddColumns(
 collectLHprobleme;"ass1";'assistance ou incident');
 "ass1";"assistance ou incident");
 "Number";CountRows('assistance ou incident')
 )

 

work perfectly.

arthurbeaulieu_0-1641565399524.png

 


And i try something like that for time 

 

Filter(collectLHprobleme;'datedereview' >= DatePicker1.SelectedDate And 'datedereview' < DatePicker1_1.SelectedDate)

 

 and it work

 

arthurbeaulieu_1-1641565443019.png

 

 

but i can't do time and amount in the same time. 
I hop someone have a solution for me.

regards
Arthur


 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @arthurbeaulieu 

    Please consider changing your Formula to the following:

    AddColumns(
     GroupBy(
     AddColumns(
     Filter(collectLHprobleme;
     'datedereview' >= DatePicker1.SelectedDate And 
     'datedereview' < DatePicker1_1.SelectedDate
     );
     "ass1"; 'assistance ou incident'
     );
     "ass1"; "assistance ou incident"
     );
     "Number"; CountRows('assistance ou incident')
    )
    
    
    

     

    I hope this is helpful for you. 

  • arthurbeaulieu Profile Picture
    30 on at

    Thank you so much it work perfectly !!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard