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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
haizman
Advocate I
Advocate I

Color by Variable

Hey all. First time poster, semi-long time lurker. 🙂

 

I'm hoping someone can help me determine if there is a way to color visuals by variable. So if I have a data table that has brand, forecasted revenue and actual revenue. Then as I slice that it would be able to change the color of the visuals based on which brand it is displaying.

 

Thanks!

1 ACCEPTED SOLUTION
dearwatson
Continued Contributor
Continued Contributor

I cant wait for the day we add a measure/column to the colour field. until then we have to fudge it.

 

I have done this with a combo graph like below... its OK as long as you have data like in the table on the left.

 

or you could overlay two line graphs if that suits your needs.

 

The Brand column is put into the legend field and the forecast and actual measures are simple SUM(Forecast) type

Capture.PNG

 

Unfiltered

Capture.PNG

View solution in original post

4 REPLIES 4
dearwatson
Continued Contributor
Continued Contributor

I cant wait for the day we add a measure/column to the colour field. until then we have to fudge it.

 

I have done this with a combo graph like below... its OK as long as you have data like in the table on the left.

 

or you could overlay two line graphs if that suits your needs.

 

The Brand column is put into the legend field and the forecast and actual measures are simple SUM(Forecast) type

Capture.PNG

 

Unfiltered

Capture.PNG

@dearwatson, thanks for the quick response! Is there any way to do this on the gauge visual? 

dearwatson
Continued Contributor
Continued Contributor

Sorry I dont think any of the gauges support having a Legend so I doubt it is possible.

 

Cheers

Greg

 

Thank you!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.