Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am new to PowerBI and am trying to figure out how to convert the below formula into DAX. This formula is being used to filter and pull a total count from multiple columns located within one very large report.
=SUM(COUNTIFS('REG Major Reports Combined'!G:G, "Y", 'REG Major Reports Combined'!H:H, "MAT", 'REG Major Reports Combined'!I:I, "MEC"), COUNTIFS('REG Major Reports Combined'!G:G, "Y", 'REG Major Reports Combined'!Q:Q, "MAT", 'REG Major Reports Combined'!R:R, "MEC"))
Thanks!
Solved! Go to Solution.
Hi, @carrollag ;
You could create a measure as follows:
count =
COUNTROWS (
FILTER ( 'REG Major Reports Combined', [G] = "Y" && [H] = "MAT" && [I] = "MEC" )
)
+ COUNTROWS (
FILTER ( 'REG Major Reports Combined', [G] = "Y" && [Q] = "MAT" && [R] = "MEC" )
)
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @carrollag ;
You could create a measure as follows:
count =
COUNTROWS (
FILTER ( 'REG Major Reports Combined', [G] = "Y" && [H] = "MAT" && [I] = "MEC" )
)
+ COUNTROWS (
FILTER ( 'REG Major Reports Combined', [G] = "Y" && [Q] = "MAT" && [R] = "MEC" )
)
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
So you want a sum of countifs? Here is one way to achieve this:
Example data:
Dax:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
@carrollag , You can have measure like
countrows(filter('REG Major Reports Combined'[G] = "Y" && 'REG Major Reports Combined'[H] = "MAT" && 'REG Major Reports Combined'[I] = "MAT" ))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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 |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |