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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NatureChips
New Member

How to display data as percentage in a gauge visual

Hello! I have the following gauge with the 34 placed in value, and 80 placed in maximum value.

NatureChips_0-1714665939528.png

 

We would like to see this displayed as a percentage, so a 43% out of 100%. However, if I attempt right clicking the values and then clicking on "Show as Percentage of Grand Total" the following happens.

NatureChips_1-1714665972427.png

 

I have also attempted by using the following formula and placing it on the value field:

 

% = FORMAT(DIVIDE([Sum of TrainedEmployees],[%GT Count of TotalEmployees])/100, "0.00%")
 
However, for some reason it will show it as blank despite showing a 34% on the table:
 
NatureChips_2-1714666188649.pngNatureChips_3-1714666195566.png

 

Please note I do NOT have access to Power BI Desktop and can only build from Power BI Services.

 

2 REPLIES 2
TomMartens
Super User
Super User

Hey @NatureChips , 

 

in addition to what @v-kaiyue-msft already mentioned, you can achieve that the callout value is showing up as a percentage while the max value of the gauge still shows as an absolute value.

image.png

 

To achieve this I created two measures, the first one represents the MAX value for the gauge:

 

vizAid max for Callout Value in Gauges = 20000000

 

 

I assigned this measure to the MAX setting of the Gauge:

image.png

 

Then I created a measure that makes the Division:

 

vizAid percent for Callout Value in Gauges = DIVIDE( CALCULATE( SUM( 'FactOnlineSales'[SalesQuantity] ) ) , [vizAid max for Callout Value in Gauges])

 

 

Then you can use this measure with the custom label in the settings of the callout value:

image.png

Finally format the measure as percentage:

TomMartens_0-1714716271082.png

 

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
v-kaiyue-msft
Community Support
Community Support

Hi @NatureChips ,

 

Using Expressions
% = FORMAT(DIVIDE([Sum of TrainedEmployees],[%GT Count of TotalEmployees])/100, "0.00%")
The reason it is not displayed in the gauge visual object is because the format function converts the result to a text format, whereas this visual object expects the result to be in a numeric format.

 

You can change the expression to
DIVIDE([Sum of TrainedEmployees],[%GT Count of TotalEmployees])/100

 

Set the maximum value to 1

vkaiyuemsft_0-1714713460671.png

 

vkaiyuemsft_1-1714713460672.png


If possible, it is recommended that you use power bi desktop, as it is easy to achieve results using its built-in formatting tools.

vkaiyuemsft_2-1714713480090.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors