Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Try this expression
=Aggr( If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.8, 'A', If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.95, 'B', 'C')) , factory, (SKU,(=Sum(Sales), Desc)))
Give this a shot
=Aggr( If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.8, 'A', If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.95, 'B', 'C')) , factory, (factorySKUKey, (=Sum(Sales), desc)))
Where factorySKUKey is created in the script like this
[Лист1]:
LOAD [factory],
[SKU],
[factory]&'|'&[SKU] as [factorySKUKey],
[Sales]
FROM [lib://Desktop/Example for community.xlsx]
(ooxml, embedded labels, table is [Factory sales]);
Would you be able to share a sample to show what you have and what exactly are you looking to do?
Can you provide an example from the data provided? For example, if I select South, what isn't right? and what should it look like?
Hi
So, I loaded the data you provided and when I select Western, I saw this
This looks similar to what you want. Is it not? What is not right? Can you pinpoint it in the above image?
Try this expression
=Aggr( If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.8, 'A', If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.95, 'B', 'C')) , factory, (SKU,(=Sum(Sales), Desc)))
Give this a shot
=Aggr( If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.8, 'A', If(Rangesum(Above(Sum(Sales)/Sum(TOTAL <factory> Sales), 0, RowNo())) < 0.95, 'B', 'C')) , factory, (factorySKUKey, (=Sum(Sales), desc)))
Where factorySKUKey is created in the script like this
[Лист1]:
LOAD [factory],
[SKU],
[factory]&'|'&[SKU] as [factorySKUKey],
[Sales]
FROM [lib://Desktop/Example for community.xlsx]
(ooxml, embedded labels, table is [Factory sales]);