Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have this:
Solved! Go to Solution.
@NingMel try this:
WO with Code TF1 or TF2 =
COUNTROWS (
FILTER (
WORK_ORDER,
CONTAINS (
RELATEDTABLE ( EQUIPMENT ),
EQUIPMENT[EQUIPMENT_CATEGORY_CODE], "TF1"
)
|| CONTAINS (
RELATEDTABLE ( EQUIPMENT ),
EQUIPMENT[EQUIPMENT_CATEGORY_CODE], "TF2"
)
)
)
@NingMel try this:
WO with Code TF1 or TF2 =
COUNTROWS (
FILTER (
WORK_ORDER,
CONTAINS (
RELATEDTABLE ( EQUIPMENT ),
EQUIPMENT[EQUIPMENT_CATEGORY_CODE], "TF1"
)
|| CONTAINS (
RELATEDTABLE ( EQUIPMENT ),
EQUIPMENT[EQUIPMENT_CATEGORY_CODE], "TF2"
)
)
)
@SpartaBI Thank you so much it works!!! I knew it was something to do with this || but I never use it before. I tried below but it didn't work. Anyway thank you so much.
@NingMel my pleasure 🙂
Please don't forget to accept my previuos reply as a solution for community viasabilty and appreciate your kudos 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |