web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add data to Chart comp...
Power Apps
Unanswered

Add data to Chart components

(1) ShareShare
ReportReport
Posted on by 205
Hi Everyone,
 
 
Can you please show how to add our data to chart?
 
I have tried but not working.
 
 
 
Regards,
ROSE
 
 
Categories:
I have the same question (0)
  • ROSEBLACK Profile Picture
    205 on at
    Hi Everyone,
    @DeepakS 
     
    Would someone help me?
     
    Thanks!
    ROSE
  • MS.Ragavendar Profile Picture
    4,977 Super User 2025 Season 2 on at
    Hi,
     
    The errors saying the table which you passed has none of the expected columns (Category / DataValue) can you please correct the datasource.
  • ROSEBLACK Profile Picture
    205 on at
     
    My datasource is correct. Can you please see below?
     
    Regards,
    ROSE
     
  • ROSEBLACK Profile Picture
    205 on at
    Hi all,
     
    I would really appreciate if someone could please help me with this issue.
     
    Regards,
    ROSE
  • ROSEBLACK Profile Picture
    205 on at
    I'm still waiting for solution hope someone can help on this.
     
    Thank a lot!
    ROSE
  • Verified answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Hi @ROSEBLACK
    Try to use Total rather than "Total" first and similarly to other fields. and try.
    SortByColumns(
        AddColumns(
            GroupBy(
                DBarChart_1.ChartData,
                Item,
                MyGroup
            ),
            Total,
            Sum(
                MyGroup.DataValue,
                DataValue
            )
        ),
        "Total"
    )
     
    I try my best to give you another example , Suppose I have sample data in a Table1 in Excel file and I save it in OneDrive, 
     
    I add this data into the app,  and add a button , then OnSelect=
    ClearCollect(
        FormattedData,
        ShowColumns(
             Table1, Item,TotalAmount
        )
    )
    then I assign FormattedData to CharData., hope it will help you.
     
     
  • ROSEBLACK Profile Picture
    205 on at
    Dear ,
    Thank you for your helping me on this issue.
    You are using an excel file in OneDrive.
    I have a SharePoint list name is TEST with columns: Name (Elon Mush, Jeff Bezos, Mark Zuckerberg,...) and ColorColumns (choise: Blue, Red Yellow, ...)
    Can you please share with me how to use the code?
     
     
    SharePoint list name: ChartSampleList
     
     
    Total column
     
     
    Change to Units column
     
    I have tried to create the same the SharePoint list but facing the error after connect it.

    Thanks a lot!
    ROSE
     
     
  • Suggested answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    I think the name of the field is the problem.
    when you check the ChartSampleList, please click it see my screen shot.
    Then it gives you the overview of the list table, and also the column name.
     
     
    field2 column, on my sharepoint is Item, but here is different.
    in the ChartGropedData,  specify the column name refers to the list table view.
    You are almost there.  :)
     
    good luck.
  • ROSEBLACK Profile Picture
    205 on at
    Dear 
     
    It's showing the SharePoint list name is correct.
    But it's showing the error below:
    ChartSampleList = There is an error in this formula. Try revising the formula and running it again. Data type: Table
     
    Your advises pls.
     
    Thanks a lot!
    ROSE
  • Suggested answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Have you tried to re-connect your list ? if not please try to delete it and add it back. 
    one more thing, did you add the control in a screen ?
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard