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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Working with the Gauge visual

Hello Community, 

 

Having trouble to get my guage visual to show me what I need.   I have this table below.   The last column is not a measure, it is just the same column as the 2nd column but showing the % of the column total.  

 

What I am trying to do is to use the standard gauge visual to show the first metric  (don't care about the other three).   Against a KPI of 95%.  

 

In other words, the gauge should show that relative to the first metric below which is the only one we really care about, we are at 71.31%  but the target KPI is 95%.    Any guidance on how to set this up?

 

texmexdragon_0-1614889056206.png

 

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

Hi @Anonymous ,

 

Based on your description, you can create some measures as follows.

total_shipment = CALCULATE(SUM('measure_gauge'[shipment]),ALLEXCEPT(measure_gauge,measure_gauge[Order]))
%_total = [total_shipment]/CALCULATE(SUM(measure_gauge[shipment]),ALL())
Target = 0.95
And then create a Gauge visual.
 
Result:

v-yuaj-msft_0-1615802008300.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

3 REPLIES 3
v-yuaj-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, you can create some measures as follows.

total_shipment = CALCULATE(SUM('measure_gauge'[shipment]),ALLEXCEPT(measure_gauge,measure_gauge[Order]))
%_total = [total_shipment]/CALCULATE(SUM(measure_gauge[shipment]),ALL())
Target = 0.95
And then create a Gauge visual.
 
Result:

v-yuaj-msft_0-1615802008300.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

Download PBIX with solution

 

I've had to create dummy data but it should work for you when modified to suit your data.

Create measures for the Target and the Metric

 

Target = 0.95
Four Days or Less = DIVIDE( CALCULATE(MAX('Table'[Total Shipments (Order Count)]), FILTER('Table', CONTAINSSTRING('Table'[Order to Ship Weekday Count], "A.")) ) , SUM('Table'[Total Shipments (Order Count)]) )

 

 

Put these into the Value and Target Value

viz.png

gauge1.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi @PhilipTreacy 

 

Yes, I did start another post but framed in a slightly different way (about the measure itself).   Your help was great, but in it you used a calculated column to define the qty.   My data, which I unfortunately can't upload, is based on a measure.  I just need to somehow modify your version to account for a measure rather than a calculated column and again, just looking at "A" as that is the only metric we are putting the KPI against. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.