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 / Multiple data on LineC...
Power Apps
Answered

Multiple data on LineChart

(0) ShareShare
ReportReport
Posted on by 113

Can I achieve this in powerapps?  I am unsure how to do it. 

 MgrSupervisorInternal
Q195%45%85%
Q290%50%90%
Q355%45%87%
Q460%85%45%

sample line chart.png

Categories:
I have the same question (0)
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can set the NumberOfSeries property on the line chart to be able to have multiple series on the same chart. To create the chart below:

    ForumPost001.png

    I updated the following properties on the control:

     

    NumberOfSeries: 3
    Items: MyData // the name of the collection in my example
     Labels: Quarter // you can see these on the Advanced tab
     Series1: Mgr // in the right-side pane after selecting
     Series2: Supervisor // the line chart control
     Series3: Internal
    ItemColorSet: [RGBA(49, 30, 193, 1),RGBA(248,166,103, 1), RGBA(94,93,108,1)]
    

     

    The attached file shows this scenario. To open it, save it locally, then go to https://create.powerapps.com, choose Open, Browse and select the file that you previously saved.

    Hope this helps!

  • Rebeccak Profile Picture
    113 on at

    That makes complete sense, but i am unsure on how to get my data collection to look like yours. When i collect the data it looks like this: Any Suggestions?

    TypeQuarterTotal
    SupervisorQ145%
    SupervisorQ250%
    SupervisorQ345%
    SupervisorQ485%
    ManagerQ195%
    ManagerQ290%
    ManagerQ355%
    ManagerQ460%
    InternalQ185%
    InternalQ290%
    InternalQ387%
    InternalQ445%
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    How do you get your data? If you are defining it (i.e., in Excel, SharePoint, or directly), you can format it as in your original table, or using an expression like the one below:

    ClearCollect(
     MyData,
     { Quarter: "Q1", Manager: 95%, Supervisor: 45%, Internal: 85% },
     { Quarter: "Q2", Manager: 90%, Supervisor: 50%, Internal: 90% },
     { Quarter: "Q3", Manager: 55%, Supervisor: 45%, Internal: 87% },
     { Quarter: "Q4", Manager: 60%, Supervisor: 85%, Internal: 45% })

    If you already have the data in the format from your last post, you will need to "pivot" the table, to move some of the rows into columns. For this case, you can use this expression below:

    RenameColumns(
     AddColumns(
     Distinct(MyData2, Quarter),
     "Supervisor", LookUp(MyData2, Type = "Supervisor" And Quarter = Result, Total),
     "Manager", LookUp(MyData2, Type = "Manager" And Quarter = Result, Total),
     "Internal", LookUp(MyData2, Type = "Internal" And Quarter = Result, Total)),
     "Result", "Quarter")

    I've attached another version of the same app to this answer (ForumThread335008b.msapp), feel free to open it to see how you can implement this scenario.

  • Rebeccak Profile Picture
    113 on at

    Thank you very Much. This has worked. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard