Forum Discussion

vijaykaali811's avatar
1 year ago
Solved

calculated column using another table scan

Hi   I have two table column  table1  ======== product description  qty category >> calculated field  table2  pattern - contains patters  eg . product*kids , dress*adult .etc category -  K...
  • anilelmastasi's avatar
    anilelmastasi
    1 year ago

    But user says that only category column.

     

    You an try this vijaykaali811 ,

     

    Category =
    VAR descText = table1[description]
    VAR matchedCategory =
    MAXX(
    FILTER(
    table2,
    SEARCH(
    SUBSTITUTE(table2[pattern], "*", ""),
    descText,
    1,
    0
    ) > 0
    ),
    table2[category]
    )
    RETURN
    matchedCategory

     

    If this solved your issue, please mark it as the accepted solution. ✅