Forum Discussion
Cross filtering across tables
- 5 years ago
Hi pbhat89 ,
Do you want the result is the measure or the table?
If the measure is your result, please refer the following steps.
1. Change the Both direction to Single.
2. Then create a measure like this,
Measure = var _selected = SELECTEDVALUE('Table 2'[Condition]) var _select_count = CALCULATE(COUNT('Table 1'[ID]),FILTER('Table 2','Table 2'[Condition]=_selected)) var _Total = COUNT('Table 1'[ID]) return _Total - _select_countIf you have any question, please kindly ask here and we will try to resolve it.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi pbhat89 ,
Do you want the result is the measure or the table?
If the measure is your result, please refer the following steps.
1. Change the Both direction to Single.
2. Then create a measure like this,
Measure =
var _selected = SELECTEDVALUE('Table 2'[Condition])
var _select_count = CALCULATE(COUNT('Table 1'[ID]),FILTER('Table 2','Table 2'[Condition]=_selected))
var _Total = COUNT('Table 1'[ID])
return
_Total - _select_count
If you have any question, please kindly ask here and we will try to resolve it.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
In the above -
solution works but only for one condition. If i select two conditions i.e. A and B . then it doesn't work and reverts to the old count.