Forum Discussion

Kamill11's avatar
Kamill11
Icon for Helper I rankHelper I
5 years ago
Solved

compare columns with text values in different queries (DirectQuery mode)

Hi everyone,

I need to do measure for:

if the value in column 1 is contained in column 2 then it displays "YES", if none it displays "NO", Columns are in different queries, and they both are in text format. Report works in directquerry mode. 

 



I try to do it like this.

 

M = IF(CONTAINSSTRING(SUM(Column2),SUM(Column1)),"YES","NO")

 

But there is problem with SUM, becouse of STRING.

Can someone help me? thank you. 

2 Replies

  • use MAX or MIN instead of SUM.

    You have not mentioned what your data model looks like. Other measure functions may be more appropriate.