Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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?
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
10 | |
8 |