Forum Discussion
issue with filter context formula
Hi Anonymous
First of all, you can create a realtionship between the tables - with direction from TableSelectedDepartment to 1, So basically TableSelectedDepartment acts like a dimension.
If that somhow not possible you can create the following measure:
SumHours=
Calaculate(Sum(Table1[hours])
,FILTER(Table1
,Table1[department]=TableSelectedDepartment[department]))
Hope it helps,
David Ganor
- Anonymous4 years agoNot applicable
Thanks, I would indeed a measure as I made the connection in my database too difficult... 🙂
I understand the logic behind it, but when I try it in PowerBI, it seems that PowerBI only allows me to put a measure for TableSelectedDepartment[department]).
SumHours=
Calaculate(Sum(Table1[hours])
,FILTER(Table1
,Table1[department]=TableSelectedDepartment[department]))