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

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Can we write a formula inside the ColumnChart Series, is it possible

(0) ShareShare
ReportReport
Posted on by 1,748 Super User 2024 Season 1
I have this SharePoint list which contain 2 columns:-
 
1) Target Amount
2) Actual Amount
 
now i can showing them inside a Column chart inside a vertical gallery as follow:-
 
 
 
Now i do not want to show numbers, instead i want to show percentages, mainly to divide the (Actual Amount / Target amount) and show this percentage inside a column + second column showing 100. is this possible? mainly if i can define formula inside the Series? or i need to create 2 additional columns inside the list? one which is calculated (Actual Amount / Target amount) and one with a static value of 100?
 
Thanks
I have the same question (0)
  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on at
    Can we write a formula inside the ColumnChart Series, is it possible
    Hi

    Yes, you can display percentages inside a column chart in PowerApps without needing to add extra columns in your SharePoint list. You can define the formula directly in PowerApps to calculate the percentage (Actual Amount / Target Amount) and use that within the chart's series.

    [
        {
            "Name": "Actual",
            "Value": ThisItem.'Actual Amount' / ThisItem.'Target Amount' * 100
        },
        {
            "Name": "Target",
            "Value": 100
        }
    ]

    Set item property of the chart

    yourgalleryname .AllItems
     
  • johnjohnPter Profile Picture
    1,748 Super User 2024 Season 1 on at
    Can we write a formula inside the ColumnChart Series, is it possible
     
    Thanks for the reply, but where i need to add this formula?
     
    [

        {

            "Name": "Actual",

            "Value": ThisItem.'Actual Amount' / ThisItem.'Target Amount' * 100

        },

        {

            "Name": "Target",

            "Value": 100

        }

    ]

     
     
    you mean to build a collection containing those new fields? if so, then i am not sure if this will work as the collection can hold up to 2 k items..
     
    or this will be within each gallery item?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard