Forum Discussion
How to write Filter condition on with two different tables ?
- 6 years ago
Anonymous , Assume both tables has a relation ID column
Try like
calculate(count(tablea[ID]), tablea[type] = "Protect", not(isblank(tableb[ID])))
or
calculate(count(tablea[ID]),filter(tablea, tablea[type] = "Protect" && tablea[ID]= related(tableb[ID])))
- Anonymous6 years ago
Thanks for the update,
I'm able to use the 2nd one , i didnt understand the first one.
If i dont need any hard code filter in that can i use as below right ?
calculate(count('tablea'[ID]),FILTER('tablea ,'tablea'[ID] = related('tableb'[ID])) --- Where i have relation between two tables)ThanksRams
Anonymous , Assume both tables has a relation ID column
Try like
calculate(count(tablea[ID]), tablea[type] = "Protect", not(isblank(tableb[ID])))
or
calculate(count(tablea[ID]),filter(tablea, tablea[type] = "Protect" && tablea[ID]= related(tableb[ID])))
- Anonymous6 years agoNot applicable
Thanks for the update,
I'm able to use the 2nd one , i didnt understand the first one.
If i dont need any hard code filter in that can i use as below right ?
calculate(count('tablea'[ID]),FILTER('tablea ,'tablea'[ID] = related('tableb'[ID])) --- Where i have relation between two tables)ThanksRams