Forum Discussion
Anonymous
4 years agoNot applicable
Filter the same table two times with item slicer
Hi community, I have two tables People table: People name People id Amy 001 Peter 002 Paul 003 Poject table: People ID project ID 001 XX 001 YY 001 ZZ ...
amitchandak
Super User
4 years agoAnonymous , In sunc case prefer to use an independent people table
Number of related project =
var _tab = summzarize(filter(project, project[People ID] in SELECTEDVALUE(People[People ID])), [Project ID]
return
calculate(
distinctcount(project[project ID]),filter( project, project[Project ID] in _tab))
or when joined
Number of related project =
var _tab = summzarize(filter(project, project[People ID] in SELECTEDVALUE(People[People ID])), [Project ID]
return
calculate(
distinctcount(project[project ID]),filter( project, project[Project ID] in _tab), removefilter(People) )
Anonymous
4 years agoNot applicable
Hi amitchandak,
Thanks for replying. Could you explain more on two measures you provide?
I tried to create those measure, but there are syntax error in the var _tab.