Forum Discussion
bharosha
1 year agoHelper I
filter a table using the selected value from another table
I have a table that contains ID Category 1 A 1 B 2 C 3 A 3 B 4 C 4 D 4 A 5 B I have another table that is setting as a filter in the entire page, wh...
- 1 year ago
I figured out myself Filtered Category Count =
VAR SelectedCategories = VALUES('ID category filter'[Category])
RETURN
CALCULATE(
DISTINCTCOUNT('ID and category'[ID]),
FILTER(
'ID and category',
'ID and category'[Category] IN SelectedCategories
)
)
bharosha
1 year agoHelper I
I figured out myself Filtered Category Count =
VAR SelectedCategories = VALUES('ID category filter'[Category])
RETURN
CALCULATE(
DISTINCTCOUNT('ID and category'[ID]),
FILTER(
'ID and category',
'ID and category'[Category] IN SelectedCategories
)
)