Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I want your help to find out something based on the aggr().
I'm having a data with me invoice,actual sale and sale but i want to display the actual sale using aggr() in the expression
expected value is 83000 as actual sale but it is showing as 149000
can any one help me .
PFA.
can you try this
sum( aggr(sum({<flag={'Asc'}>}actual_sales_val)/count({<flag={'Asc'}>}sales_pk),sales_pk))
my expression as follows =sum(aggr(sum({<flag={'Asc'}>}actual_sales_val),sales_pk))
This exp is giving proper out put as expected
=sum(aggr(actual_sales_val,sales_pk))
but if i apply set expression it is not showing the same
=sum(aggr(sum({<flag={'Asc'}>}actual_sales_val),sales_pk))
may be this
sum( {<flag={'Asc'} aggr(sum({<flag={'Asc'}>}actual_sales_val),sales_pk))
or
sum( total aggr(sum({<flag={'Asc'}>}actual_sales_val),sales_pk))
Why/where do you need aggr() though ? The output is 149000 for actual_sales_val and 83000 for sales. so i cant see what's wring there?
Hi Pradosh ....
lets say if actual sale is 6000 with in that sale value is considered as 3000 and 3000
let me explain this ...
for an invoice amount of 6000 is per an item where this was sold by 2 representatives 3000 and 3000
but invoice wise this is repeated for actualsale of 6000 based on employee
can you have a look at that sample once repeated invoice alias sales_pk can identify them
Above expression is throwing syntax error and below one returns the same 149000 value
can you try this
sum( aggr(sum({<flag={'Asc'}>}actual_sales_val)/count({<flag={'Asc'}>}sales_pk),sales_pk))
Thank you Pradosh for supporting me inspite of weekend holiday .
Happy New Year In Advance .
No problem man .. Wish you the same .. cheers.