Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi huys
I could really use your help!
Pls note that I' using BI for just a couple of months now.
I have a KPI card and a GAUGE:
KPI CARD: VALUE is the actual, TARGET is my target and TREND AXIS is month/year
GAUGE: VALUE is the actual, TARGET VALUE is my target
capture
For the moment I have just green for met and above target and red for below target.
I would need to have this instead:
Red <85%
Orange 85-95%
Green >95%
Could you guys help me out?
Thanks so much!
Solved! Go to Solution.
Hi @i_stanescu_ro ,
I created some data:
Here are the steps you can follow:
You need to find the minimum and maximum values and then use the Switch() function to customize the colors..
GAUGE Visual:
1. Create measure.
Color =
var _mindate=MINX(ALL('Table'),[Amount])
var _maxdate=MAXX(ALL('Table'),'Table'[Amount])
var _divide=DIVIDE([Measure],_maxdate)
RETURN
SWITCH(
TRUE(),
_divide<0.85,"red",
_divide>=0.85&&_divide<0.95,"orange",
_divide>=0.95,"green")
3. Visual – Color – Fill color –fx.
3. Result:
KPI Visual:
Trend axis – fx
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @i_stanescu_ro ,
I created some data:
Here are the steps you can follow:
You need to find the minimum and maximum values and then use the Switch() function to customize the colors..
GAUGE Visual:
1. Create measure.
Color =
var _mindate=MINX(ALL('Table'),[Amount])
var _maxdate=MAXX(ALL('Table'),'Table'[Amount])
var _divide=DIVIDE([Measure],_maxdate)
RETURN
SWITCH(
TRUE(),
_divide<0.85,"red",
_divide>=0.85&&_divide<0.95,"orange",
_divide>=0.95,"green")
3. Visual – Color – Fill color –fx.
3. Result:
KPI Visual:
Trend axis – fx
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks so much for your time!
Wow, thanks so much for this!
My issue is that I can't find the max and min of the range, because I also have a slicer for period, on months, and the data is from 2022 onwards and gets refreshed every month...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |