Forum Discussion

AliceW's avatar
AliceW
Icon for Power Participant rankPower Participant
5 years ago
Solved

A Sum Column in one table from another table's values

Hi ladies and gents, This sounds simple enough, right? And yet I am going back and forth for the past hour. Please help! So, here it goes - Table OPPS with the column OPP ID is in a one-to-many, ...
  • MattAllington's avatar
    MattAllington
    5 years ago

    Ironically, I have added 2 new chapters to the third editon, and one is on RANKX. You don't need a column - you can create a virtual column/table. Something like this

     

    =rankx(all(Opps),calculate(sum('OPP LINES'[AMOUNT])))

     

    the ALL(ops) portion behaves like the calc column you mention but it is done in memory at runtime. It has the added benefit of reacting to the filter on product.