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 / Line Chart not Showing...
Power Apps
Answered

Line Chart not Showing the graph line

(0) ShareShare
ReportReport
Posted on by 492
Good day
 
I created a collection for my line chart as follows:
 
ClearCollect(CREQE_FormCollection, CREQE_Form);
ClearCollect(
   CREQE_FormWithMonthYear,
   AddColumns(
      CREQE_FormCollection,
      MonthYear,
      Text('Date of Request', "[$-en-US]yyyy-mm")
   )
);
ClearCollect(
   GroupedData,
   AddColumns(
      GroupBy(
         CREQE_FormWithMonthYear,
         MonthYear,
         GroupedItems
      ),
      MonthlyTotal,
      Sum(
         GroupedItems, 
         "SubmissionAmount"
      )
   ));
 
This syntax gives no errors except the collection table is showing [Object object] under the MonthlyTotal field and I don't think this is right.
 
I get errors if I put double quotes quotes like so: ClearCollect(CREQE_FormCollection, CREQE_Form);
ClearCollect(
   CREQE_FormWithMonthYear,
   AddColumns(
      CREQE_FormCollection,
      "MonthYear",
      Text('Date of Request', "[$-en-US]yyyy-mm")
   )
);
ClearCollect(
   GroupedData,
   AddColumns(
      GroupBy(
         CREQE_FormWithMonthYear,
         "MonthYear",
         "GroupedItems"
      ),
      "MonthlyTotal",
      Sum(
         GroupedItems, 
         Value(SubmissionAmount)
      )
   )
);
Items: GroupData
Series: MonthTotal
Label is MonthYear
 
Please help
Categories:
  • Suggested answer
    CU18061035-1 Profile Picture
    Microsoft Employee on at
    hey
     
     
    can u try this code:
    ClearCollect(
        CREQE_FormCollection, 
        CREQE_Form
    );
    
    ClearCollect(
        CREQE_FormWithMonthYear,
        AddColumns(
            CREQE_FormCollection,
            "MonthYear",
            Text('Date of Request', "[$-en-US]yyyy-mm")
        )
    );
    
    ClearCollect(
        GroupedData,
        AddColumns(
            GroupBy(
                CREQE_FormWithMonthYear,
                "MonthYear",
                "GroupedItems"
            ),
            "MonthlyTotal",
            Sum(
                GroupedItems, 
                Value('SubmissionAmount') // Ensure 'SubmissionAmount' is being read as a numeric value
            )
        )
    );
    
    if it works please mark my answer as verified,
     
     
    cheers
  • Verified answer
    NN-21081740-0 Profile Picture
    492 on at
     
    I have already tried that syntax but did not work.
     
    This is what resolved my issues: I replaced Sum(GroupedItems)with CountRows(GroupedItems).
     
    Thank you for your willingness to help.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard