Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I want to visualize both Actual and Target in one guage(I thought about default Guage visualize) but I got in to the following problem as screenshots are showing:
in this visual my Target is 24 and my Actual is 56 and the Maximum value is set to Target(always should be). The following is the Matrix visual that shows all my values for Actual and Target in one view:
I created a measure for each of the Guage visuals as per above picture but my problem is I need to illustrate both Target and Actual in my visual which is not possible with the current default visual! Which visual I should use or how I can do a work around on the same visual?
I need to use a visual like the following:
Solved! Go to Solution.
Hi @Anonymous ,
In the gauge chat you cannot highlight with condittional formatting, maybe a workaround could be create a pie chart with a single value 1 or blank when the target is higher than the actuals and make red as is would be an traffic light alert?
Just do a measures similar to this:
Alert = IF( SUM(Table1[Actuals]) <= SUM(Table1[Target])/2 ; 1 ; BLANK())
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi There,
Could anyone tell me how the titling at the bottom of each gauge for actual vs target values was done !
Much apprecaited.
Hi @Anad63 ,
If you are refering on the having the values on the end of each end of the gauge that can be done in two ways adding measures or columns to the Gauge Minimum and Maximum Value or making it a fixed value on the Gauge Axis:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi Felix,
Thank you for the answer, I mean the actual words you see i nthe middle of each gauge for actual and target value. For example the word Actual is listed in yellow and the word Target is listed in red with a numerical value below each word.
Those values should have been created with a card visualization and then setup in this colors or using condittional formatting.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you! I'm reletavilty new to powe BI, i'm not exactly sure how to link a card visualization to a gauge chart to show those values. Any tips on how to do so?
Hi @Anonymous ,
Appears to me that you are defining the maximum of the Gauge equal to the Target of the gauge you should define both value differently on that way you would get a single line for the target however is just one line not two visual one under the other.
One option can be making two Gauge charts with the same maximum value and on one place the target on another the actuals and add some cards with the values something like this:
you could also use the custom visual rainbow gauge https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104382043?tab=Overview
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsGreat! Thanks @MFelix very much!
There is only one with your visual(custom visual you illustrated) which is how to show the below target values in different color(something like applying conditional formatting for the matrix visual)???
And for the rainbow Guage ,https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104382043?tab=Overview, that you suggested since I don't have all the fields as needed by the visual how I can use it for this purpose?! I only have Actual, Target, Max and that's it!
Would appreciate if you can show me?
Hi @Anonymous ,
What I showed was not a custom visual was two gauges chart on top of each other one with actuals another with target and formatted in different colours check the PBIX file attach.
In the previous example I added cards in this one I added the callout on target and target value to show as actual on the actual gauge.
The maximum is a measure that gives the actuals totals and place on both gauges but you can define a differente value.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix Thanks
I know those are not one visual but two visual inside each other, but my questions was about rainbow Gauge: How I can use it when I don't have all the fields in my data set?
Did you tried to add measure for each value needed?
Check the example they show in the images.
Never used this visual before.
Regards,
Mfelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelixThanks,
Actually all the values are based on the measures I created myself on the one radial gauge visual! Now my problem is (please look at the following screenshots):
Now there are follwoing problems:
1. The Maximum value is double the Actual by default (PBI preference) which is not good forPicture 6 because my Target is lost which creats confusion, so how to choose a dynamic Maximum based on either Actual or Target which is bigger? (look at picture 4 where my target is bigger but in picture 1 the Actual is bigger value!)
2. in picture 2 when there is no data for Actual or Target or both the visual shows up as blank! how to avoid it?
3. why Picture 1 and 6 are deshaped and for a general user look like skewed? How I can avoid it to happen?
Hi @MFelix ,
I wanted to compare the Actuals and Target of my dataset so I used default Gauge visual on Power BI as the following:
Now there are follwoing problems:
1. The Maximum value is double the Actual by default (PBI preference) which is not good forPicture 6 because my Target is lost which creats confusion, so how to choose a dynamic Maximum based on either Actual or Target which is bigger? (look at picture 4 where my target is bigger but in picture 1 the Actual is bigger value!)
2. in picture 2 when there is no data for Actual or Target or both the visual shows up as blank! how to avoid it?
3. why Picture 1 and 6 are deshaped and for a general user look like skewed? How I can avoid it to happen?
Many thanks in advance supporters and super users
Hi @Anonymous ,
See my answers below:
1. You can setup a measure to have your maximum value don't know what type of actual you want but it can be a fixed value or a derivative of the actuals see examples below:
Maximum = 8 Maximum = SUM(Table[Actuals]) // Maximum will be always your actuals Maximum = SUM(Table[Actuals]) * 1.10 // Add 10% to your actuals value so your chart will always present as 90% filled
Just some examples, then just place this measure on the chart Maximum part.
2. Create the following measures to use instead of placing values from columns:
Actuals = SUM (Table[Actuals]) + 0 Target = SUM (Table[Target]) + 0
The additional zero will make your values to be 0 (is maknig the same as a IF measure to return 0).
3. Be sure that all your visuals have the same size maybe can be only a question of eye trick since they appear to be bigger.
If you want to elaborate on this final question please share a sample file trough private message or with mockupdata.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks @MFelix ,
The problem with your reply is that I can't put a predefined Maximum based on Target or Actual! I have to first compare and see which one is bigger and then create a measure accordingly. Let's see this example:
Actual: 100
Target: 4
now if I predefined my Maximum based on the Target then I would run into trouble! do you see? How I can use a what-if analysis to first find the bigger number? Or if I take Actual as biggest I might have Target as 80 and Actual as 2! Please show me the trick on it?
2. I want to appley something like conditional formatting like when the actual is below %50 of the Target it turns red or be in the red zone or something like this and if it's between 50%-100% of Target it turns Yellow and 100%+ it turns green! I couldn't find the solution, please show me the solution?
Hi @Anonymous ,
The question you raise is pretty simple to address, you just need to make a measure for the maximum value that uses the maximum value between target and actuals:
Maximum Value = MAX(SUM(Table1[Actuals]);SUM(Table1[Target]))
Regarding your second question on the gauge visual there is no way of making condittional formatting and you also cannot place gauge on top of gauge since it has a grey background and the top one would overlap the other ones one option could be using a donut chart and some measures.
I'm working on a blog post regarding making this type of customization without recurring to custom visuals, will put it during the next days on the blog. Do you want me to make some test with making it dinamic on colour coding based on the data you have?
And then you can implement on your data.
It always a way to improve my post and the community.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
In the gauge chat you cannot highlight with condittional formatting, maybe a workaround could be create a pie chart with a single value 1 or blank when the target is higher than the actuals and make red as is would be an traffic light alert?
Just do a measures similar to this:
Alert = IF( SUM(Table1[Actuals]) <= SUM(Table1[Target])/2 ; 1 ; BLANK())
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsRegards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix Thanks for the reply!
Actually I can not download June relase due to limitation but your reply triggered a good solution and I used another custom visual.
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |