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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi all,
I have the below measure in a matrix.
I would like to be able to 'Total' the count of "Yes" strings in the column and row headers.
Is this possible?
Solved! Go to Solution.
Hi @HenryJS ,
Here we go:
Measure =
IF (
ISFILTERED ( 'Table'[date] ),
IF (
ISINSCOPE ( 'Table'[sub] ),
MAX ( 'Table'[y/n] ),
CALCULATE (
DISTINCTCOUNT ( 'Table'[sub] ),
FILTER ( 'Table', 'Table'[y/n] = "yes" )
)
),
BLANK ()
)
Pbix as attached
Use filtered and when scope is not date and what you have row, use the count measure
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Count measure will same as yes measure but that will do sum
I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...
Hi @HenryJS ,
Here we go:
Measure =
IF (
ISFILTERED ( 'Table'[date] ),
IF (
ISINSCOPE ( 'Table'[sub] ),
MAX ( 'Table'[y/n] ),
CALCULATE (
DISTINCTCOUNT ( 'Table'[sub] ),
FILTER ( 'Table', 'Table'[y/n] = "yes" )
)
),
BLANK ()
)
Pbix as attached
Hi @HenryJS ,
Your query doesn't give enough details. Can you try sharing some data screenshots and the expected output screenshot?
Thanks,
Pragtai
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 139 | |
| 128 | |
| 60 | |
| 59 | |
| 57 |