Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

summarizing multiple values from different Table within other Table

Hi,  I do have two tables. one is simply a long list of values structured like below search value cost a cost b final cost 1z32sde 12 32 44 1z8432 12 23 11 in general text-nu...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    You can try this code to create a calculated column in second table.

    Column =
    CALCULATE (
        SUM ( 'First Table'[Final cost] ),
        FILTER (
            'First Table',
            CONTAINSSTRING ( 'First Table'[Search value], 'Second Table'[Info] )
        )
    )

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.