Forum Discussion
Need Help About Index
Dear PhilipTreacy ;
thanks for your reply but sometimes orders can have different order quantities at the same time .Your formula for this situation gives error for index.You can see below , just i added some line for each orders , when the order numbers repeats index is not working properly , it is indexing all the lines , it is not grouping by order number
For this situation , i expcect like that :
Could you pls check it for me
thanks for your kşnd supports
here is a workaround for you
Rank =
RANKX(all('Table'),VALUE('Table'[Order Qty]),,ASC)+RANKX(all('Table'),VALUE('Table'[Order Number]),,ASC)/10
rank2 = RANKX('Table',VALUE('Table'[Rank]),,ASC)
- erhan_795 years agoPost Prodigy
Dear ryan_mayu ;
thank you but , i want a index as below as i mentioned my previous message , your last one is not giving my request , or am i wrong ?
on your examples i can not see as my below examples
- ryan_mayu5 years agoSuper User
i sorted by index. To double check with your logic, sort by order qty lowest to highest, then order number lowest to highest. Is that correct?
- erhan_795 years agoPost Prodigy
ryan_mayu but i need a new column which index numbers will be as i mentioned , i need the index numbers as i mentioned below picture , lets repeat rules to you too ;
First index number "1" will be given the order which has less total order quantity .
then which order total quantity will be bigger it will get index number "2 "
there can be 2 or maybe 3 line for one order . ın our example all orders has 2 lines , For that situtaions if an order got an index number all line of order will be same .
in our below example "order 350 "and "order 430 " , has equal order quantities , so for this situations system will give priorty for the order which one has smaller order number .
on your examples all lines has different index numbers dear , i just want a index number distrubution as below