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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Vizbaby
Helper I
Helper I

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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