Forum Discussion
melimob1
1 year agoHelper I
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...
- 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
ryan_mayu
1 year agoSuper User
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
- melimob11 year agoHelper I
thank you so much Ryan
I managed to apply and the result worked. I then also merged the 'keyword' column into my source table and did an if statement so I could tag each row and use it not only as counts but in a visual sliced different ways. Really appreciate you taking the time.
thank you!
- ryan_mayu1 year agoSuper User
you are welcome, pls accept the answer as the solution. Thanks