Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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?

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    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:

    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.

3 Replies

  • 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

    Regards

    Phil

    • Anonymous's avatar
      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. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    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:

    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.