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.
I wanted to show columns in the picture different color based on their values.
Those bars are various measures, in this case, they are YTD unit sales vs last year, Latest perod unit sales change and last week unit sales change, I want them to show green if they are positive or red if negative. Can not find fx button that usually showing next to color settings, can anyone help me? thank you.
columns
bar color settings menu
Solved! Go to Solution.
Look at this example, but there i have only one metric VTB, i make two out of that, you can see the formula for negative the same for positive.
In this case I had to change the visual type as well.
Look at this example, but there i have only one metric VTB, i make two out of that, you can see the formula for negative the same for positive.
In this case I had to change the visual type as well.
Thank you, you helped me alot!
Hi, you can have the following workaround:
Measure 1=If( Ytd unit sales change>0, Ytd unit sales change)
Measure 2 = If( Ytd unit sales change< 0, Ytd unit sales change)
then you can pick color for all above -green, for all the measures below -red.
Hello, Olgad, thanks. I am new to PBI. not quite sure how to follow your solution.
Based on what you said, I am guessing I will have to create 6 meausres, 2 for each. that should be fine.
Can you give some more details on how to put measure 1 and measure 2 into correct place? Thanks again!
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 |