Forum Discussion

melimob1's avatar
melimob1
Helper I
1 year ago
Solved

DAX Measure or Calculated Column for identifying match between two tables (one column exact match, o

Hi  Need help with... DAX Measure or Calculated Column for identifying match between two tables (one column exact match, other partial substring/Keyword match)   I have this scenario: Table 1 (s...
  • ryan_mayu's avatar
    1 year ago

    you can try this

     

    Column = calculate(COUNTROWS('Table'),FILTER('Table',CONTAINSSTRING('Table'[String],'Table (2)'[Keyword])&&'Table'[Country]='Table (2)'[Country]))
    Column 2 = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Country]='Table (2)'[Country]))-'Table (2)'[Column]
    Column 3 = CALCULATE(COUNTROWS('Table'),FILTER('Table',CONTAINSSTRING('Table'[String],",")&&'Table'[Country]='Table (2)'[Country]))
     
    pls see the attachment below