Forum Discussion

DKoontz's avatar
DKoontz
Iron Contributor
Nov 19, 2021
Solved

Combining Dynamic Arrays

I'm currently working on a project that requires me to pull unique warehouse locations from a table, and list our different SKUs assigned to each location. Right now I'm using multiple dynamic ranges...
  • SergeiBaklan's avatar
    SergeiBaklan
    Nov 19, 2021

    DKoontz 

    Sorry, I misunderstood. If we speak about "Low Non-Fixed Locations by Demand" or like, that's array of array. If modify, when with lambdas and supporting functions.

     

    However, I'd modify a bit existing formulae. First, avoid using of INDIRECT() and define dynamic ranges with INDEX() instead. For example, W2# could be

    =LET(
     zRangeL,  Inventory!Z2:INDEX( Z2:Z1000,Inventory!$Z$1 ),
     zRange,   Inventory!Z2:INDEX( Z2:Z1000,Inventory!$Z$1-1 ),
     aaRange,  Inventory!Z2:INDEX( AA2:AA1000, Inventory!$Z$1 - 1 ),
    SORT(FILTER( aaRange, zRange >= LARGE( zRangeL, 45)),1,-1) )

    Spills could be combined like in H2#

    =LET(
       Part,      UNIQUE( FILTER( InvTable[ItemCode], InvTable[Zone Code]=J1)),
       Qty,       SUMIFS( InvTable[Quantity], InvTable[ItemCode], Part, InvTable[Zone Code],$J$1),
       ZOne,      SUMIFS( InvTable[Pallet], InvTable[ItemCode], Part, InvTable[Zone Code],$J$1),
       ZTwo,      SUMIFS( InvTable[Pallet],InvTable[ItemCode],Part,InvTable[Zone Code],$K$1),
       Projection, XLOOKUP( Part,InvTable[ItemCode],InvTable[Projection]),
     CHOOSE( {1,2,3,4,5}, Part, Qty, ZOne, ZTwo, Projection) )

    Plus if no special reasons I'd don't use binary format, dynamic arrays are not optimized for it.

     

    Please check attached.

Resources