The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
8 | |
5 |