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 / Piechart itemColourSet...
Power Apps
Answered

Piechart itemColourSet switch from SP choices column

(0) ShareShare
ReportReport
Posted on by 157

Hello, 

 

I am having trouble correctly formatting a formula to switch the itemcolourSet on a piechart built from a choices column in a sharepoint list

 

List Name: Maintenance

Column Name: Status

Choices: "Not Started" / "Started" / "Closed"

 

I have tried all sorts in the itemcolourset formula but can not get it working - could anyone help? 

 

 

ForAll(Maintenance,
Switch(Status.Value,
"Not Started" , Red,
"Started" , CornflowerBlue,
"Closed" , LightGreen,
DimGrey
 ))

 

 

Categories:
I have the same question (0)
  • Verified answer
    td1979 Profile Picture
    157 on at

    I resolved this by hard coding the color order (as the list items / list order will never change) - not the solution I wanted but it works. 

     

    Still curious how this is achieved (or what my error in the  above code is) if anyone has any input?

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

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard