Skip to main content

Notifications

Power Apps Experimental Features
Unanswered

Show Month wise records in column chart in canvas app

Posted on by 10
 
Hi  Team,
     I have requirement to show the month and year on X-axis of column chart and created record count on Y-axis in canvas app.
Dataverse table contains account table. It contains account name, account create date.
Dataverse Data is 
 
Account Name Created Date
Acme Inc. 2023-01-10
GlobalTech 2023-01-25
Innovators 2023-02-15
StarTech 2023-02-20
FutureWorks 2023-03-05
 
 
Added to canvas app . My requirement is show the  month wise created records in column chart. 
Added    X-Axis = Month name, Y-Axis  =Created  Records Count.
Using Below code in chart items property but getting error.
 
AddColumns(GroupBy(AddColumns('Account Head',"MonthName",
       Text(Month(['Created Date])',"[$-en-US]mmmm")),
       "MonthName","MonthlyRecords"
    ),
        "RecordCount",CountRows(MonthlyRecords)
)
 
but getting errors provide correct solution to my requirement.
 
Thanks in advance for quick response.
  • WarrenBelz Profile Picture
    WarrenBelz 141,122 on at
    Show Month wise records in column chart in canvas app
    You do not need quotes "" around either AddColumns or GroupBy parameters. You also do not need Month in the Text format as you are already stiplating this.
    AddColumns(
       GroupBy(
          AddColumns(
             'Account Head',
             MonthName,
             Text('Created Date',"mmmm")
          ),
          MonthName,
          MonthlyRecords
       ),
       RecordCount,
       CountRows(MonthlyRecords)
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,122

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,414

Leaderboard

Featured topics