# Percentage in Grafana using PromQL

**URL:** <https://community.grafana.com/t/percentage-in-grafana-using-promql/73291>\
**Category:** Dashboards\
**Created:** [September 29, 2022, 2:25pm UTC](https://community.grafana.com/t/percentage-in-grafana-using-promql/73291 "2022-09-29T14:25:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhruvinpatel001](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dhruvinpatel001](https://community.grafana.com/u/dhruvinpatel001)\
**Post date:** [September 29, 2022, 2:25pm UTC](https://community.grafana.com/t/percentage-in-grafana-using-promql/73291/1 "2022-09-29T14:25:19Z")

</div>

Hello Grafana Community,

I have bit weird requirement in Dashboard.

**Result. sum**  
Value1 53  
Value2 65  
Value3 100  
Value4 64

and Here is my promql query for above result  
sum by (result) (metrics\_name)

I want to get percentage for each value like this way  
for value1 it should be 53\*100/(53+65+100+64) and I want to display same way for each value and want to display it in separate column in same table.

What change should I make in Grafana or PromQL? I am using Grafana 7.2.1.

Thanks,  
Dhruvin
