Forum Discussion
filter on two columns (or condition)
- 4 years ago
stauffermi , do not join two tables or create one more independent table
Then try measure like
measure =
var _tab = summarize(allselected(Table1), Table1[Location ID])
return
Calculate(Count(Table2[ID]), filter(Table2, Table[Location 1] in _tab || Table[Location 2] in _tab ) )
or
measure =
var _tab = summarize(allselected(Table1), Table1[Location ID])
return
Calculate(Count(Table2[ID]), filter(Table2, Table[Location 1] in _tab || Table[Location 2] in _tab ), values(Table2[ID]) )
stauffermi , do not join two tables or create one more independent table
Then try measure like
measure =
var _tab = summarize(allselected(Table1), Table1[Location ID])
return
Calculate(Count(Table2[ID]), filter(Table2, Table[Location 1] in _tab || Table[Location 2] in _tab ) )
or
measure =
var _tab = summarize(allselected(Table1), Table1[Location ID])
return
Calculate(Count(Table2[ID]), filter(Table2, Table[Location 1] in _tab || Table[Location 2] in _tab ), values(Table2[ID]) )