# Line count and %

**URL:** <https://pug.phocassoftware.com/t/line-count-and/1267>\
**Category:** Ask the Community\
**Created:** [September 17, 2019, 11:16pm UTC](https://pug.phocassoftware.com/t/line-count-and/1267 "2019-09-17T23:16:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsavage16](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/rsavage16/32/392_2.png) [@rsavage16](https://pug.phocassoftware.com/u/rsavage16)\
**Post date:** [September 17, 2019, 11:16pm UTC](https://pug.phocassoftware.com/t/line-count-and/1267/1 "2019-09-17T23:16:58Z")

</div>

I’m struggling with how to get the proper % of lines for a quality metrics database. We have a number of streams we are creating that measure things like on time delivery by a required date and by a promise date.

I have a column called qms metric it is a yes or a no flag and  
a column called value, with 1 and 0.

My measurement is on the value. Count how many times we were on time (1 = on time) and then display the % of lines on time and the % not on time.

My dimension is the column called qms metric

When i select that metric my totals have a % of 15.xx% but my y is 100 and my n is 0.

I’m told this : The QMS Metric measure is a calculation of (Value/count)\*100

With calculated measures in the total row **they are not actually totaled** , the calculation is applied to the total data."

I really need a solution to help with this. I have about 15 streams that use this same type of metric.

if i don’t use this dimension, then my numbers are good, but as the user tries to understand what was “late” the Y and No amounts are off.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/1X/e0c7c620e8a2efca9a56ee121e30c3ae8522be87.png)

---

<div class="post-metadata">

**Author:** ![anon90441911](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@anon90441911](https://pug.phocassoftware.com/u/anon90441911)\
**Post date:** [September 19, 2019, 9:52am UTC](https://pug.phocassoftware.com/t/line-count-and/1267/2 "2019-09-19T09:52:31Z")

</div>

Hi,

Since qms metric is the Dimension, the QMS Metric measure can be set with value = 1

Eg: Y= 10 time and N = 5. Then on Phocas, change “Actual” to % Share under “Format” (on the left of Period).

![ShareScreenshot](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/1X/e74d194fd02cd70a2cce0294d30c19f2c197f181.png)
