Forum Discussion

jlarques's avatar
jlarques
Icon for Helper V rankHelper V
4 years ago
Solved

Add records by category

Hi community, I have another challenge. I want to add all records of the same category, but first, I need to find which category it belongs to in the description column. When I find it, then I have ...
  • mh2587's avatar
    4 years ago

    measure = 

                         =IF(
          SUMX(TableName,
               FIND(
                    UPPER(TableName[Category]),
                    UPPER(TableName[Description])
                    ,,0
                   )
              ) > 0,
          SUM(TableName[Quantity]),
          BLANK()
         )