Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I'm trying to build ABC report for Sales analysis. having issue with calculated dimension(Grade) and based on user selection it should show bellow attached expected output screen shot, currently i'm getting wrong results (only the ABC summary report not correct result). if you have any solutions/idea's much appreciated for your help. thanks
Note: used below script for calculated dimension (Grade)
Cumulative%:
LOAD *,TotalNetPrice/TotalSales as SalVale%,
If(RangeSum(Peek('run_sum'), TotalNetPrice/TotalSales) < 0.6, 'A Stocks',
If((RangeSum(Peek('run_sum'), TotalNetPrice/TotalSales)) > 0.6 and (RangeSum(Peek('run_sum'), TotalNetPrice/TotalSales)) < 0.9 , 'B Stocks', 'C Stocks')) as Grade,
RangeSum(Peek('run_sum'), TotalNetPrice/TotalSales) as run_sum
Resident Sales
Order By TotalNetPrice desc;
FYI
Current output (refer the ABC summary report)
I don't understand?