Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello,
I made a color in Excel pivot table for Country and Factory.
In PowerBI matrix, how to add the color for Country and Factory resoectively?
PowerBI matrix:
Country: CN
Facctory: QN
Excel pivot table:
Hi,
Thanks for the solution Uzi2019 offered, and i want to offer some more information for user to refetr to.
hello @pang22 , you can consider to use the conditional formatting for it, you can refer to the following solution.
Create a measure.
Measure = SWITCH(TRUE(),ISINSCOPE('Table'[Factory]),"grey","pink")
Then put it to the background color in conditonal formatting of the value.
Outptut
But please notice that when you expand it , the color of subtotal for each level will return the default value.
After testing, it cannot set the color for the subtotal for each level by condition.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pang22
Check below video for better understanding
https://www.youtube.com/watch?v=wTRrskQzAHk
https://www.youtube.com/watch?v=FSTiPm5tY8A
https://www.youtube.com/watch?v=WF7fCAmjjZc
I hope above videos would help you to do formatting row wise.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |