Forum Discussion

STRUSINIO's avatar
STRUSINIO
Frequent Visitor
3 years ago
Solved

Column values multiplying

Hey, I got single data table like bellow:  What im trying to do is to get result assigned to ID by sum of multiplication columns Sales by Shares material no 1 = 100 * 0.25 material no 2 = 0...
  • Wilson_'s avatar
    3 years ago

    Hello STRUSINIO,

     

    You're using the right function (SUMX) but it looks like your understanding of the functions is incorrect. Hopefully this documentation helps your understanding. Anyway, try the below instead.

    Result = SUMX ( 'Table', 'Table'[Sales] * 'Table'[Shares] )

     


    ----------------------------------
    If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)