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 during Fabric Data Days. Don't miss your chance! Request now
Hello!
Hoping someone can help!
I have attached an example data set below.
What I am trying to do is build a measures with the following logic, which has to look at 2 different tables, apply conditional logic to fields in both tables, and then return a count of the matching rows from the cplan table.
Condition 1 = COUNTROWS(cplan) WHERE (cplan[UsagePlan] NOT IN {"Plan2","Plan3"}) OR sys_status[Status] = "Active"
Cheers
Andy
Solved! Go to Solution.
Hi @andybamber
Is this your desired result?
Hi @andybamber
COUNTROWS ( FILTER ( c_plan, NOT ( c_plan[UsagePlan] IN { "Plan2","Plan3" } ) ) )
+ CALCULATE ( COUNTROWS ( c_plan ), sys_status[Status] = "Active" )
Hi @andybamber
Is this your desired result?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |