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!Get Fabric certified for FREE! Don't miss your chance! Learn more
I'm working on this and I know this is not right. I think I need to use Containsstring but I never use it before, seeking for some advice. Essentially I want to count WO with EQ code that has 'PFL' within its code. EQ code is long and 'PFL' can be included at anypart of it.
Number of WOs with EQ contain PFL =
Solved! Go to Solution.
@NingMel , Try like
calculate(COUNTROWS(WORK_ORDER),filter(RELATEDTABLE(EQUIPMENT), containsstring(EQUIPMENT[EQUIPMENT_CODE],"PFL")))
or
calculate(COUNTROWS(WORK_ORDER),filter((EQUIPMENT), containsstring(EQUIPMENT[EQUIPMENT_CODE],"PFL")))
@amitchandak Thank you so much, it works!! I use this one:
calculate(COUNTROWS(WORK_ORDER),filter(RELATEDTABLE(EQUIPMENT), containsstring(EQUIPMENT[EQUIPMENT_CODE],"PFL")))
@NingMel , Try like
calculate(COUNTROWS(WORK_ORDER),filter(RELATEDTABLE(EQUIPMENT), containsstring(EQUIPMENT[EQUIPMENT_CODE],"PFL")))
or
calculate(COUNTROWS(WORK_ORDER),filter((EQUIPMENT), containsstring(EQUIPMENT[EQUIPMENT_CODE],"PFL")))
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 14 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |