Forum Discussion

NMOORE's avatar
NMOORE
Icon for Helper II rankHelper II
3 years ago
Solved

Sum columns filtering table on multiple containsstring values

Hi,   Using the table attached as an example 'Financial_Tab'.   Row ID CBS Code CBS Name Budget 1 1.2.3.21 NOP1 EX1  £ 10 2 1.2.3.21 NOP2 EX1  £5 3 1.2.4.21 NOP2 EX1  £15 ...
  • VahidDM's avatar
    3 years ago

    Hi NMOORE 

     

    Check this measure:

    AA =
    SUMX (
        FILTER (
            'Table',
            CONTAINSSTRING ( 'Table'[CBS Code], "1.2.4" )
                && LEFT ( 'Table'[CBS Name], 4 ) IN { "NOP1", "NOP2", "NOP3" }
        ),
        [Budget]
    )
    

     

     

     

     

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

    Appreciate your Kudos!! 

    LinkedIn | Twitter | Blog | YouTube