Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
ChahindaAlyy
Microsoft Employee
Microsoft Employee

color coding change on selection

i am working on a report that shows customer purchases on each product
the idea is the create a color coding as per the following: top transactions, mid transactions, and low transactions.
i alreay did the ranking for each product and i did the the color coding successfully.

the problem is, when i select a given customer name, the color coding changes.

for example, in the table, whthout any filtrations,  customer (x) is one of the top customers as per the color coding, when i select that Customer (X) from the (Cusotmer nme) slicer), the color coding changes to aanother color (mid transactions),

any idea how ro solve this? i need t slsect the customer name form the slicer and keep the same color coding as whitout filtrations

2 REPLIES 2
parry2k
Super User
Super User

@ChahindaAlyy whatever logic yu are using to calculate the color coding, you need to change that DAX measure to include ALL customers, not the selected one, so measure should have ALL function.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k 
my Formulas are as follow:
i am creating a formulas to calcuate the revenue by product,

then created a formulas to rank by customer rankx

rankx(ALLSELECTED(Table[Customer column]),[Total Product X],,DESC,Dense)
then in coditional formating i based the conditional formatting on the ranking field
 
i tried to remove allselected and insert "all" only, but did not change.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors