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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
michellepace
Resolver III
Resolver III

Revenue/Expenses: Data bar for both to run left to right? (Matrix)

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

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

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.

revenue.pngexpenses.pngresult.png

 

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.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

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.

revenue.pngexpenses.pngresult.png

 

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.

amitchandak
Super User
Super User

@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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors