Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Vizbaby
Frequent Visitor

Dax formula on conditional count

I have 2 columns in powerbi one shows if a client is deceased with true or false as entries and the other shows if the client submitted a will with yes or no as entries. i want a dax formula that shows; out of all the deceased client, how many submitted a will. i used the formula below;
 
Deceased Will =
CALCULATE(
    COUNTROWS('nameoftable'),
    'nameoftable'[deceased__c] = TRUE(),
    'nameoftable'[Will?] = "Yes"
)
 
But i get this error when i try to use it on a viz
Vizbaby_0-1700498634306.png

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Vizbaby ,

 

try like:

 
Deceased Will =
COUNTROWS(    
    FILTER(
        nameoftable,
        nameoftable[deceased__c]=TRUE
            &&nameoftable[Will?] = "Yes"
    )
)

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @Vizbaby ,

 

try like:

 
Deceased Will =
COUNTROWS(    
    FILTER(
        nameoftable,
        nameoftable[deceased__c]=TRUE
            &&nameoftable[Will?] = "Yes"
    )
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.