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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Tachometer visualisation and different card color

Hello,

 

I am preparing visualisation - visual type: "Tachometer" which shows actual  value. I defined in the tachometer ranges, which are separated by color. 

 

Are there any options whether the visual card ( in blue circle) can follow the color in tachometer? For example in the image below should be the value 46 red.

 

JohnCZ_1-1623411225626.png

First source table with Actual and Targed values.

Product GroupHazard reported ActualHazard reported Target
A689576
B346335
C326223
D4664
E4625
F561

 

And the second table which is only for range definition in the Tachometer visualisation.

Product GroupHazard reported Range 2Hazard reported Range 3Hazard END
A460,8576864
B268335502,5
C178,4223334,5
D51,26496
E202537,5
F0,811,5

 

Thank you very much for help

 

Jan

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can roughly understand your requirement, and I think you can explain the logic of your Tachometer visual in detail if it’s possible. You can follow my steps:

  1. Create a measure like this:
Color =

var _actual=SUM('Table'[Hazard reported Actual])

var _target=SUM('Table'[Hazard reported Target])

return

SWITCH(

    TRUE(),

    _actual<_target*0.6,"Red",

    _actual>=_target*0.6&&_actual<=_target*0.8,"Yellow",

    _actual>_target*0.8&&_actual<=_target*1.2,"Green")
  1. Click on the card visual and apply the custom color like this:

v-robertq-msft_0-1623749486978.png

v-robertq-msft_1-1623749486980.png

 

And you can roughly get what you want, like this:

v-robertq-msft_2-1623749486981.png

 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

4 REPLIES 4
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can roughly understand your requirement, and I think you can explain the logic of your Tachometer visual in detail if it’s possible. You can follow my steps:

  1. Create a measure like this:
Color =

var _actual=SUM('Table'[Hazard reported Actual])

var _target=SUM('Table'[Hazard reported Target])

return

SWITCH(

    TRUE(),

    _actual<_target*0.6,"Red",

    _actual>=_target*0.6&&_actual<=_target*0.8,"Yellow",

    _actual>_target*0.8&&_actual<=_target*1.2,"Green")
  1. Click on the card visual and apply the custom color like this:

v-robertq-msft_0-1623749486978.png

v-robertq-msft_1-1623749486980.png

 

And you can roughly get what you want, like this:

v-robertq-msft_2-1623749486981.png

 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Dear @v-robertq-msft 

 

that is perfect - what I had been looking for.

 

Thanks a lot

 

Jan

mahoneypat
Microsoft Employee
Microsoft Employee

You can use conditional formatting on the Data Label of the card visual using a measure like the one below.  Set the color to this as the "Field Value.

mahoneypat_0-1623412606980.png

 

FontColor =
VAR result = [YourMeasure]
RETURN
    SWITCH ( TRUE ()result < 60"Red"result < 80"Yellow""Green" )

 

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hello Pat,

 

thank you for your reply. Does this work also if I use filter and switch to "Product group" B - there is a targed 335 and actual 346 - that meas it shoudl be green? 

 

Therefore I want to set up range for all visuals - for example below 60% red, 60 - 80 yellow, 80 - 120% green. The target changes using filter with "Product group".

 

Jan

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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