Forum Discussion
DAX: doubt with expanded tables
- 7 years ago
The filter you're placing on Answer[Key] = 6 does not propagate to the Customers table. Therefore the only filter propagating to the customer table is the answer table as it is (without Key = 6 ).
CALCULATETABLE will create a table filtered by Key = 6 which is then passed to CALCULATE as a filtered argument
The expanded version of Customers does not contain coulmns from the Answer table, unless bi-directional filter is activated, which i dont recommend
Hi AlB
The right measure in your case should be:
CALCULATE (
DISTINCTCOUNT ( Customers[CustomerKey] ),
CALCULATETABLE( Answers, Answers[AnswerKey] = 6 )
)
- AlB7 years agoCommunity Champion
- LivioLanzo7 years agoSolution Sage
The filter you're placing on Answer[Key] = 6 does not propagate to the Customers table. Therefore the only filter propagating to the customer table is the answer table as it is (without Key = 6 ).
CALCULATETABLE will create a table filtered by Key = 6 which is then passed to CALCULATE as a filtered argument
The expanded version of Customers does not contain coulmns from the Answer table, unless bi-directional filter is activated, which i dont recommend