Forum Discussion
Anonymous
8 years agoNot applicable
except in power bi
Hi, I have a requirement to find list of employee ids similar to except in venn diagram. Project table has relationship with employee table based on column project. If the user selects SubBrand S...
- 8 years ago
I was able to do it this way, although with your data and your conditions, I get E1 and E7 as both of them are on S1 projects but not S2 projects.
Measure 7 = VAR tableA = CALCULATETABLE(DISTINCT(Employees[Employee]),ALLEXCEPT(Employees,Projects[SubBrand])) VAR tableB = CALCULATETABLE(DISTINCT(Employees[Employee]),ALLEXCEPT(Employees,Projects2[SubBrand])) VAR results = EXCEPT(tableA,tableB) RETURN CONCATENATEX(results,[Employee],",")
Anonymous
8 years agoNot applicable
Yes Greg. I have selected S1 in the left side slicer and S2 in the right side slicer. E7 is the only person that is on an S1 project but not an S2 project. Let me know how to perform using dax or alternate way.
Greg_Deckler
8 years agoCommunity Champion
I was able to do it this way, although with your data and your conditions, I get E1 and E7 as both of them are on S1 projects but not S2 projects.
Measure 7 = VAR tableA = CALCULATETABLE(DISTINCT(Employees[Employee]),ALLEXCEPT(Employees,Projects[SubBrand])) VAR tableB = CALCULATETABLE(DISTINCT(Employees[Employee]),ALLEXCEPT(Employees,Projects2[SubBrand])) VAR results = EXCEPT(tableA,tableB) RETURN CONCATENATEX(results,[Employee],",")
- Anonymous8 years agoNot applicable
Thanks Greg.
- Greg_Deckler8 years agoCommunity Champion
Happy to help, I posted the solution with PBIX file in the Quick Measures Gallery here:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Not-In-Common/m-p/388273#M118