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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rotemshan
Helper I
Helper I

Create a gauge

I'm trying to build a Gauge,

I managed to divide the data per the requested 

The gauge shows rank divided as followed:

0-6 - Red

7-8 - Amber

9-10 - Green

 

I managed to create the following graph 

Rotemshan_0-1648112817419.png

 

and I used the following code 

Response_table APAC =
SUMMARIZE (
Merge1,
Merge1[Response_Details.Likely to Recommend NPS.1],
"0-6", CALCULATE (
COUNT (Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] >= 0
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 6
&& Merge1[Account Region]="APAC"
)
,
"7-8", CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] > 6
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 8
&& Merge1[Account Region]="APAC"
)
,
"9-10", CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] > 8
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 10
&& Merge1[Account Region]="APAC"
)
,
"0-10", CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] >= 0
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 10
&& Merge1[Account Region]="APAC"
)
)
 
I would like to present the same on a gauge but couldn't understand how to do that
I wish your assistance
2 ACCEPTED SOLUTIONS
v-kkf-msft
Community Support
Community Support

Hi @Rotemshan ,

 

Please try the Tachometer visual and create the measures:

 

Range2Start_0-6 = MAX ( 'Response_table APAC'[0-6] )
Range3Start_0-8 = [Range2Start_0-6] + MAX ( 'Response_table APAC'[7-8] )
TotalValue_0-10 = MAX ( 'Response_table APAC'[0-10] )

vkkfmsft_1-1648437514692.png

vkkfmsft_2-1648437526993.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

Hi @Rotemshan ,

 

Please try the following measures:

 

Range2Start_0-6 = SUM ( 'Response_table APAC'[0-6] )
Range3Start_0-8 = [Range2Start_0-6] + SUM ( 'Response_table APAC'[7-8] )
TotalValue_0-10 = [Range3Start_0-8] + SUM ( 'Response_table APAC'[9-10] )

vkkfmsft_0-1648807470176.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi, 

Another option is to create a Gauge that dynamically changes colour based on the current value. 

biancagilly_0-1661490064506.png

For video demonstration, click the link: https://youtu.be/oEL36Fp3TU0

v-kkf-msft
Community Support
Community Support

Hi @Rotemshan ,

 

Please try the Tachometer visual and create the measures:

 

Range2Start_0-6 = MAX ( 'Response_table APAC'[0-6] )
Range3Start_0-8 = [Range2Start_0-6] + MAX ( 'Response_table APAC'[7-8] )
TotalValue_0-10 = MAX ( 'Response_table APAC'[0-10] )

vkkfmsft_1-1648437514692.png

vkkfmsft_2-1648437526993.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Thank you for the detailed answer, 

I would like to ask a few questions:

Why did you subtract the range of 0-8 instead of counting only 7-8? and the same for 0-10 instead of 9-10?

There is a calculation that should be done on the Is it possible to put the needle on 15?

 

 

Range2Start_0-6 = MAX ( 'Response_table APAC'[0-6] )
Range3Start_0-8 = [Range2Start_0-6] + MAX ( 'Response_table APAC'[7-8] )
TotalValue_0-10 = MAX ( 'Response_table APAC'[0-10] )

 

Hi @Rotemshan ,

 

The Tachometer visual does not automatically accumulate the values of each range, so we need to specify the starting value of each range. The descripyion of these labels are as follows.

 

FIELD

DESCRIPTION CONSTRAINTS
End Value The End Value for the Tachometer Arc If “Start Value” is the minimum value in the value range, then “End Value” should be the maximum value in the value range or vice versa. All values defined by other Data Roles should lie between Start Value and End Value.
Target Value The Target value that will be displayed by the target line. Value should be between “Start Value” and “End Value” to be to be displayed on the gauge.
Note.Tachometer visual will attempt to position the label indicating target value such that it does not overlap any Axis Labels or Callout values. However, target value label may not be rendered in case Tachometer is unable to relocate target label in the visinity of target line.
Range 2 Start Value This is the starting value for “Range 2”. This is also the End value for Range 1. Value should be between “Start Value” and “End Value” to be to be displayed on the gauge.In addition, this value should be between “Start Value” and “Range 3 Start Value” when “Range 3 Start Value” is available.
Range 3 Start Value This is the starting value for “Range 3”. This is also the End value for Range 2 when “Range 2 Start Value” is defined. When “Range 2 Start Value” is not provided, this will also be the End Value for Range 1. Value should be between “Start Value” and “End Value” to be to be displayed on the gauge. In addition, this value should be between “Range 2 Start Value” and “End Value” when “Range 2 Start Value” is available.

 

vkkfmsft_0-1648608434236.png

 

For more information, please refer to: Visual Awesomeness Unlocked: Tachometer Gauge Custom Visual 

 

Best Regards,
Winniz

 

Hi @v-kkf-msft 

I did exactly as you suggested, but, for some reason the counting is incorrect 

 

Rotemshan_0-1648619593245.pngRotemshan_1-1648619968783.png

Rotemshan_2-1648620052906.png

 

Hi @Rotemshan ,

 

In my data, [0-6], [7-8], [9-10], [0-10] are the columns in the table (and each row is duplicate value), so I calculated the maximum value of these columns. 

 

vkkfmsft_1-1648622486258.png

vkkfmsft_3-1648622909304.png

 

How are your Detractor, Passive and Promoter calculated? Are they from three separate columns or one measure?

 

vkkfmsft_0-1648622387303.png

 

Best Regards,
Winniz

Hello @v-kkf-msft 

as I presented in the first post, 

I created a new table and I'm using the following formula (I'm not sure this is the recommended way to do it )

then I'm getting the following as fields available for me 

Rotemshan_0-1648788824084.png

which creates the following table 

Rotemshan_1-1648789612894.png

 

 

 

Response_table APAC =
SUMMARIZE (
Merge1,
Merge1[Response_Details.Likely to Recommend NPS.1],
"0-6"CALCULATE (
COUNT (Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] >= 0
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 6
&& Merge1[Account Region]="APAC"
)
,
"7-8"CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] > 6
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 8
&& Merge1[Account Region]="APAC"
)
,
"9-10"CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] > 8
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 10
&& Merge1[Account Region]="APAC"
)
,
"0-10"CALCULATE (
COUNT ( Merge1[Response_Details.Likely to Recommend NPS.1] ),
 
Merge1[Response_Details.Likely to Recommend NPS.1] >= 0
&& Merge1[Response_Details.Likely to Recommend NPS.1] <= 10
&& Merge1[Account Region]="APAC"
)
)

Hi @Rotemshan ,

 

Please try the following measures:

 

Range2Start_0-6 = SUM ( 'Response_table APAC'[0-6] )
Range3Start_0-8 = [Range2Start_0-6] + SUM ( 'Response_table APAC'[7-8] )
TotalValue_0-10 = [Range3Start_0-8] + SUM ( 'Response_table APAC'[9-10] )

vkkfmsft_0-1648807470176.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz

lbendlin
Super User
Super User

change the chart type to stacked bar chart.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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