cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

LineChart grouping and averaging

Hi,

I have a table as follows:

SatisfactionValueEnvironmentTeamDate
889A10/03/2019
389B09/03/2019
741A11/03/2019
333A11/03/2019
101010B11/03/2019

 

and want to create a graph to summarize that information....grouping and averaging by team and date, and filtering by Team.

So the final table should look like this:

 

SatisfactionValueEnvironmentTeamDate
889A10/03/2019
53,52A11/03/2019
741B09/03/2019
333B11/03/2019

 

but the graph should only show team A or B depending on user selection.

I have been playing with the Items property of my LineChart, but can't make it work.

 

Any ideas?

Thanks!

M.

2 REPLIES 2
Super User III
Super User III

@Anonymous 

Not sure what your GroupBy formula looks like, but you can simply apply a Filter to the Datasource that is the core of that GroupBy.  Ex:

   GroupBy(Filter(yourDataSource, Team="A"), ...

 

Of course you'd probably have this team information come from a dropdown or other source, but you'd just need to replace the Team="A" with the Team=yourControl-value

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
Anonymous
Not applicable

Hi @RandyHayes , 

thanks for your answer. Forgetting for a moment the filtering...

My group by looks like:

GroupBy(TeamSurvey;"Value";"Satisfaction";"Environment";"Date";"Col") and the result is

one data point per row on my table, not one per month averaging.

Sorry this is not allowing me to attach images.

What I need is to average and group by month, so I can show the average value for each month.

Thanks for your help!

M.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,877)