Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
if(dir=abc,sum(usedspace)/sum({<=only({<dir={'abc'}>},totalspace)),0)
Expression is not correct
No i assume dir holds the abc values then put single quotes for that
if(dir = 'abc', sum( usedspace ) / sum( {<=only( {<dir={'abc'} >} ,totalspace)) , 0 )
Try like this
if(dir='abc',sum(usedspace)/sum({<=only({<dir={'abc'}>},totalspace)),0)
Regards
ASHFAQ
try this:
if(dir='abc',sum(usedspace)/sum({$ <only({<dir={'abc'}>},totalspace)),0)
Try this
I think there should not b comma (,) before totalspace
if(dir=abc,sum(usedspace)/sum({<=only({<dir={'abc'}>} totalspace)),0)
Not working
my actual requirements if dir ='abc' then output should be sum(usedspace)/850
here 850 is total space if i go with 850 i am getting correct result that is static but i want as a dynamic
instead of 850 i want write condition .
if i go with simple sum(totalspace) then it is talking entire space ,i dont want like that
if dir =abc then need to calculate related to abc total space i.e i written like above expression
Hi,
It doesn't make sense.
Can you come-up with some sample data.
Then what does sum(usedspace) returns?
Regards
ASHFAQ
Hi, maybe:
if(dir='abc',sum(usedspace)/only({<dir={'abc'}>} totalspace),0)