hi all,
I have expression lik below
=num(
sum(Complexity)
/
(11111
sum({<desc={'Design - IT',' Design - RT'}>}hrs)
/8
)
,'##.##')
i used same formualue in straitght table nummerator and denomenator.
am getting the sum of abve /sum of below exp.
My req is--- where sum({<desc={'Design - IT',' Design - RT'}>}hrs) this value is '0' shwn in chart that corresponding values shud nt count and remaing shud be count / total of sum({<desc={'Design - IT',' Design - RT'}>}hrs) .
example: there is 47 value.. corresponig 172... the result shud be 172/408. is my result.
thnks in advance
Final expression is
=Sum(Aggr(If(sum({<cl_ktlo_desc={'Test - Design - SIT','Test - Design - RT'}>}cl_ktlo_hrs) > 0, sum(Test_Complexity), 0), Project, Period)) /
sum({<cl_ktlo_desc={'Test - Design - SIT','Test - Design - RT'}>}cl_ktlo_hrs)
You Can write in If statement i.e if(sum({<desc={'Design - IT',' Design - RT'}>}hrs)>0,sum({<desc={'Design - IT',' Design - RT'}>}hrs))
any sample app?
This expression should be sufficient. The values divided by zero will be nulls:
=sum(Complexity) / sum({<desc = {'Design - IT', ' Design - RT'}>} TOTAL hrs)
NOTE the leading space in " Design - RT" - that is as per your posting but may be a typo. So it may be:
=sum(Complexity) / sum({<desc = {'Design - IT', 'Design - RT'}>} TOTAL hrs)
If you want zeroes instead of nulls:
=alt(sum(Complexity) / sum({<desc = {'Design - IT', 'Design - RT'}>} TOTAL hrs), 0)
Hi Suresh,
Whats the text format in your hours field!
Is it just number or time format.
-Hirish
Hi,
Try to add a If() like below
If(sum({<desc={'Design - IT',' Design - RT'}>}hrs) <> 0, Your expression)
Hope this helps you.
Regards,
Jagan.
hi,
hirish,
the format is..... 0.5 ,1,1.5,2,2.5 lik dat
i used but the values are chnging jagan...nt wrkng exacty
no jonathan.
As u said the expesiion is Ok.
but i need only this exp : sum(Complexity) values correponding to second exp values where 0 is there.
i need to caluculate
there is 47 value.. corresponig 172... the result shud be 172/408. is my result.
172 value is sum(cmp) / 408 means sum({<desc={'Design - IT',' Design - RT'}>}hrs)
chk below image
in abve image
where the values both sides shud nt be calucate and sum(comp) value not equal to zero den only sum and divde with total sum means sum(hrs)
ex: 14/56 sum(cmp)/Sum(hrs) where exclude the zero