Forum Discussion

JoshP11's avatar
JoshP11
Helper II
2 years ago
Solved

Help with donut/gauge visual

Hello,   I have a requirement to present a visual in PBI like the below.      Essentially, I will have a slicer to filter on 'Name', then i need a visual to display the Maximum of a value ...
  • mickey64's avatar
    2 years ago

    For your reference.

     

    Step 0: I use this simple data.

     

    Step 1: I make 3 measures below.

    M_Recent = SUMX(FILTER('DATA','DATA'[Group]="A"),'DATA'[Value])

    M_Target = SUMX(FILTER('DATA','DATA'[Group]="B"),'DATA'[Value])

    M_Max = SUMX(FILTER('DATA','DATA'[Group]="C"),'DATA'[Value])
     
    Step 2: I make a 'Gauge visual'.

     

  • JoshP11's avatar
    JoshP11
    2 years ago

    Thank you, that's great! I think this will work perfectly, however is there a way to write the measure to get 70% of the maximum value, rather than getting it from the data?

     

    I had a little look and seems like this would be the approach but wanted to see if you agree?

     

    MaxValue = MAX(MyTable[Value])

     

    70% of MaxValue = [MaxValue] * 0.7