Alternate Solution for RANKCUMULATE Function
Hi All,
I have a solution using the Rankcumulate function but I want so avoid using it due to the performance issues. So I would like to know if there can be an alternante solution using other function
Logic :
- First I'm ranking the Sales data
- Weighted distribution is calculated for ex: 95/3220 = 3%
- Cumulate distribution is where I'm using the RANKCUMULATE(Weighted distribution, Final Sort)
- Sort is happening basis on the Prod seg line item, there is a sequence first iconic, Flag, A, B segment in this particluar order then cumulate distribution needs to be calculate.
- If there is not Prod seg assigned then cumulate distribution calulation should be from the highest sales corresponding weighted distribution to lowest.
- If ther are 2 same prod segment assigned then the cumulate distribution calulation should be from the highest sales corresponding weighted distribution to lowest
I have attached the secreenshot for the reference
Regards,
Riyaz Pasha
Tagged:
0
Answers
-
(Deleted)
Never mind, I misread your comment.
0