Forum Discussion
Calculating averages on per-record basis
- 3 years ago
In fact your Clients table is the dimension, and the other two are the fact tables - as you show in your data model.
Therefore you should use columns from the Dimension table to control your visuals. However when you select a ProgramName from the Enrollments table that selection will not reflect back into the Clients table. You can choose to change the link to bidirectional
so that filters in the fact table can flow back up into the dimension table. Or you could create a measure that senses all the filters in the fact table and then computes the result in the dimension table.
Attached is the example with the bidirectional filter. See if you can get the other (better) version to work (best done via TREATAS)
OK, if we use the TREATAS function instead, I want to check my understanding. Is the right approach:
measure =
calculate(
<summary messure>,
treatas(
values(<identifier in fact table>),
<identifier in dimension table))
Yes, that would be the approach.