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 / Using collection with ...
Power Apps
Suggested Answer

Using collection with colours field in chart itemColorSet

(0) ShareShare
ReportReport
Posted on by 47
Hi All
I got a collection with one field of different colours .
This collection is used to create a Column Chart and I want columns in a chart to have a specific colour depending on a current value.
So I have a collection
   {V:34, c:RGBA(255, 204, 153, 1)} 
   {V:50, c:RGBA(255, 204, 204, 1)} 
   {V:64, c:RGBA(204, 255, 204, 1)} 
And I want chart columns to have those colours is per "c" field in collection 
I know itemColorSet property of the chart takes a table, but I just couldnt figure out how to convert collection into a table.
I tried
    Set(ColTable, Table(Collect.c))
but it gives me table of 10 digits numbers instead of colours :/ 
Any ideas?
Thanks
 
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi 
     
    Are you using the Column Chart to display a singe value / single column in the visual?
    If yes, then you can use the following to achieve that directly in the iconColorSet:
    Switch(
        currentValue,
        34,
        [
            RGBA(
                255,
                204,
                153,
                1
            )
        ],
        51,
        [
            RGBA(
                255,
                204,
                204,
                1
            )
        ],
        64,
        [
            RGBA(
                204,
                255,
                204,
                1
            )
        ]
    )
     
    If you are trying to change color for multiple columns in the column chart using Value, I don't think that's achievable. 
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi,

    Following up to check if you were able to solve this issue using my suggestion?

    Kind regards,
    Nandit

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard