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 / How to Group data by M...
Power Apps
Answered

How to Group data by Month from list of dates

(0) ShareShare
ReportReport
Posted on by 18

Hello, I am having an excel sheet which contains Date(mm/dd/yyyy), Colum1, Column2. I am reffering this excel sheet as my data source.

In my power app screen, I inserted a listbox. This list box should display list grouped by Month instead of dates. Can someone help me how group by Months having a collection with date?

Also, Can you help me how to perform operations on collections? Example, I need to create a pie chart by sum of Column1 & Column2 from the collection.

 

Atatched is screen shot. I need to display Year-Month (2016-DEC, 2017-JAN etc) instead of by week. I need sum of all Lines in pie chart (Column1+Column2+Column3+Column4)

 

https://1drv.ms/i/s!AuLElRm7ChiimDEWckXRmYnG_zcj

 

 

 

 

Categories:
  • balachandra Profile Picture
    18 on at

    Hello All, Any help on this one?

  • Verified answer
    irinak Profile Picture
    Microsoft Employee on at

    Hi balachandra,

     

    If your data is fixed in the excel table, you may want to copy it to a collection in a way that works for your chart.

     

    Here are a couple of tutorials that cover different Date and Time formatting options:
    https://powerapps.microsoft.com/en-us/tutorials/show-text-dates-times/
    https://powerapps.microsoft.com/en-us/tutorials/function-datetime-parts/

     

    This tutorial covers scenarios on transforming data in collections:
    https://powerapps.microsoft.com/en-us/tutorials/function-forall/

     

    Best regards,
    Irina

  • balachandra Profile Picture
    18 on at

    Hello Irina, Thanks for your input.

     

    I made some progress on data in collection.

     

    Basically either you create a new collection or add one more collection using ForAll.

     

    Thanks a lot... 

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard