Start a Conversation

Unsolved

This post is more than 5 years old

4874

April 24th, 2018 01:00

calculate average of two columns in custom report

Hi,

I customized report and I made report settings but I'm getting incorrect results. You can see screenshot in normally results need equal (100+96)/2 =98 but I got different results


calculate.jpg

resuult.jpg

Value looks a lot closer but not correct in addition to i want to calculate average of two columns (100+97,44(actionally 98))/2. According to screenshot 2. How should i calculate? Anyone help me this subject?


Thank you.



141 Posts

April 24th, 2018 05:00

Hi menekse ,

 

This could either be a rounding issue or a difference in the selected time range between both reports.

Could you give us more information on the formula you selected and the report setup.

 

 

regards,

Isaka

1 Rookie

 • 

9 Posts

April 24th, 2018 06:00

Hi Isaka,

i chose Default Duration time last 15 min in two of report configuration (main and child report) and i used formula that "math.spatial.Average" and filtered name=='Availability' in child report(screenshot 3), value of Report Details:Table as a Selected value :Average (screenshot 2). i added screenshot. i hope i can explain. Thank you.


Duration.jpgaverage.jpg

formula.jpg

141 Posts

April 25th, 2018 13:00

Hi menekse ,

 

This looks like it should work, i will setup a similar report in the lab to troubleshoot this further and let you know my findings.

 

 

regards,

Isaka

141 Posts

April 26th, 2018 07:00

Hi menekse ,

 

I have been able to replicate the issue in the lab...however the Summary Settings of the column does return the correct value.

ColumnSum.PNG.png

 

I will dig into it a bit more.

 

 

regards,

Isaka

1 Rookie

 • 

9 Posts

April 26th, 2018 07:00

i changed it but solution not correct again. I got results of 97.53

1 Rookie

 • 

68 Posts

April 26th, 2018 07:00

TimeMgmt.JPG.jpg

Have you tried modifying the time management settings on the availability column of the table?

141 Posts

April 26th, 2018 08:00

Hi menekse ,

 

From my testing the discrepancy appears to happen when a table row selects multiple metrics, when i modified my filter and expansion to have a single metric per row.

GoodSum.PNG.pngGoodAverage.PNG.png

You should be able to confirm this by clicking on the Availability % value for the devices and you will notice that there are multiple lines...one for each metric, like shown below.

 

RCA.PNG.png

 

Regards,

Isaka

1 Rookie

 • 

9 Posts

April 26th, 2018 23:00

Hi Isaka,

Yes i can see with chart but It is not professional to show such a result. I think EMC should fix this.

Thank you.

No Events found!

Top