Forum Discussion

BrianNeedsHelp's avatar
BrianNeedsHelp
Resolver I
1 year ago
Solved

Sum Certain Rows but Keep in same Column

I have a table like this:  

ProductTotals

Data1

20
Data210
Product150
Product2100

How could I add the Data1 and Data2 rows together and keep it in the same Product column so it's like this:

ProductTotals
Data 30
Product150
Product2100
  • Hi BrianNeedsHelp  an alternative approach is to create calculated column like this

     

    Product Group =
    SWITCH(
        TRUE(),
        'ProductsTable'[Product] IN {"Data1", "Data2"}, "Data",
        'ProductsTable'[Product]
    )
     
     

2 Replies

  • Hi BrianNeedsHelp  an alternative approach is to create calculated column like this

     

    Product Group =
    SWITCH(
        TRUE(),
        'ProductsTable'[Product] IN {"Data1", "Data2"}, "Data",
        'ProductsTable'[Product]
    )