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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
JoshP11
Helper II
Helper II

Help with donut/gauge visual

Hello,

 

I have a requirement to present a visual in PBI like the below. 

 

JoshP11_0-1721643134489.png

 

Essentially, I will have a slicer to filter on 'Name', then i need a visual to display the Maximum of a value (this represents 100%), then display the most recent of that value (this represents 55%), then ideally a target value would also display (705)

 

The example above is for total distance ran by 'name'. The maximum will show that most distance thats been recorded on the data, the 55% will show the last data on record. I'm not certain as of now how to incorporate the target value in my data.

 

Any suggestions would be massively appreciated!

 

Thanks,

Josh

2 ACCEPTED SOLUTIONS
mickey64
Super User
Super User

For your reference.

 

Step 0: I use this simple data.

mickey64_1-1721645443479.png

 

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'.

mickey64_0-1721645411425.png

 

View solution in original post

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

View solution in original post

3 REPLIES 3
mickey64
Super User
Super User

For your reference.

 

Step 0: I use this simple data.

mickey64_1-1721645443479.png

 

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'.

mickey64_0-1721645411425.png

 

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

I agree with your measures. (^^)

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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