Forum Discussion
Anonymous
4 years agoNot applicable
issue with filter context formula
Hi all, I am getting in the topic of filter context and I would like to create an easy formula in my report that filters based on values in another table.Somehow however it doesn't work and there...
v-yalanwu-msft
4 years agoCommunity Support
Hi, Anonymous ;
Try it,
SumHours =
CALCULATE (
SUM ( Table1[hours] ),
FILTER (
Table1,
Table1[department] IN ALLSELECTED ( TableSelectedDepartment[department] )
)
)
Or
SumHours =
CALCULATE (
SUM ( Table1[hours] ),
FILTER (
Table1,
Table1[department] = MAX ( TableSelectedDepartment[department] )))
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.