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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
In my matrix need to visually compare the size of income (positive values) toexpenses (negative values). Is it possible to conditionally format a column of values so that both positive and negative data bars run from left to right? and I use colour to differentiate as positive or negative).
Thanks as always,
Michelle
Solved! Go to Solution.
Hi @michellepace ,
You can set the bar direction of Revenue as 'Left to Right' and Expenses as 'Right to left' in the matrix, adjust the colors as your needed.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @michellepace ,
You can set the bar direction of Revenue as 'Left to Right' and Expenses as 'Right to left' in the matrix, adjust the colors as your needed.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@michellepace , In case you are not using legend or multiple columns you can do that in the bar using rules or Using a measure with "field" option.
For both case refer: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Color measure
color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)
for matrix it will work with rows/column etc.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!