Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi there,
I'm trying to add to a visualisation staff with multiple devices. I want to be able to only staff that have both a mobile phone AND phone extension. The information for whether or not they have that service are all listed as separate entries under a column "Service" and their names under "Staff Name". Hopefully that's enough info otherwise can try an post a sample data set. Thanks
Solved! Go to Solution.
Number of Equipment =
var _Staff =PhoneTable[Staff]
var _calc = CALCULATE(COUNTROWS(PhoneTable),FILTER(ALL(PhoneTable),PhoneTable[Staff]=_Staff))
Return If (_calc <>1,"Both","One Only")
Proud to be a Super User!
Hi @Anonymous
Please try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Number of Equipment =
var _Staff =PhoneTable[Staff]
var _calc = CALCULATE(COUNTROWS(PhoneTable),FILTER(ALL(PhoneTable),PhoneTable[Staff]=_Staff))
Return If (_calc <>1,"Both","One Only")
Proud to be a Super User!
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |