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 / Creating line chart fr...
Power Apps
Answered

Creating line chart from textinput values

(0) ShareShare
ReportReport
Posted on by 22

Festive greetings.

Was hoping someone knew how to create a line chart using data entered in the textinput boxes directly in the app (no external data sources). I was thinking the below, but this only creates 1 series in the chart, I need multiple. Any ideas?

 

Table({Value:TextInput1.Text, Label: "Category1"},{Value:TextInput2.Text, Label: "Category2"})

 

Essentially I need a line chart to show below with year as the x axis and sales on the y axis - with 2 lines for each machine

Machine 1Machine 2Year
3505202016
1002002017
Categories:
I have the same question (0)
  • jayvee Profile Picture
    22 on at

    Sorry, re. last sentence - I mean 1 line for each machine

  • eka24 Profile Picture
    20,925 on at

    Have you tried changing the Number of Series to  of the Chart to 2?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • jayvee Profile Picture
    22 on at

    YEs, the number of series is set to 2 on the chart. THe issue is with the formula above I think - it doesn't distinguish between sets of data - it just considers it as 1 series. 

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @jayvee 

    I am not sure of your connection between the sample formula you provided and the sample data you provided.  One specifies Categories and the other shows machines and years.

    But, if I go by the sample data, you would need to get your formula to something like this:

    Table({Year:"2016", Machine1:350, Machine2:520}, {Year:"2017", Machine1:100, Machine2:200})

    Then, set series count to 2 (which you state you have). Then Labels set to Year and Series1 to Machine1 and Series2 to Machine 2.

    This will give you two series lines based on those values.

     

    I hope this is helpful for you. 

  • jayvee Profile Picture
    22 on at

    Amazing, many thanks RandyHayes! 

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard