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 / Create Bar Charts Axis...
Power Apps
Answered

Create Bar Charts Axis from another SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hi there, 

 

I am fairly new to Power Apps, and here's what I am trying to do.

 

I have two SharePoint lists as follows.

 

Table 1

Region Country Area
Region ACountry 1Area I
Region ACountry 1Area II
Region ACountry 2Area III
Region BCountry 3Area IV
Region BCountry 4Area V
Region BCountry 4Area V

 

Table 2

NameCountry Area
AaronCountry 1Area I
BenCountry 1Area II
CollinCountry 2Area III
DanielCountry 3Area IV
EdwardCountry 3Area IV
Fernald Country 1Area I

 

(Both tables' cell value are text value)

I am trying to create a bar graph to show the counts of Area on table 2, but I also want to show the zero values (Area V) on the axis. Is there any way I can pull out the data from Table 1 as the x-axis label?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@ryannghk,

    Based on the issue that you mentioned, do you want to display the counts of the Area?

    Currently, the configuration of your table is not suitable for populating the bar chart. You should reconstruct the table.

    I have a test on my side, please take a try as below:

    Add a Button and set the OnSelect property as below:

     

    Collect(
     ColChart,
     Table(
     {
     AreaType: "Area I",
     CountArea: CountIf(
     Table2,
     Area = "Area I"
     )
     },
     {
     AreaType: "Area II",
     CountArea: CountIf(
     Table2,
     Area = "Area II"
     )
     },
     {
     AreaType: "Area III",
     CountArea: CountIf(
     Table2,
     Area = "Area III"
     )
     },
     {
     AreaType: "Area IV",
     CountArea: CountIf(
     Table2,
     Area = "Area IV"
     )
     },
     {
     AreaType: "Area V",
     CountArea: CountIf(
     Table2,
     Area = "Area V"
     )
     }
     )
    )

     

     090301.png

    Add a Column Chart and set the Items property of the ColumnChart1 as below:

     

    ColChart

     

    Set the Items property of the Legend1as below:

     

    ColChart.CountArea

     

    Copy the Legend control and set the Items property of the Legend1_1 as below:

     

    ColChart.AreaType

     

    090302.png

    Best Regards,

    Qi

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard