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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filled Cell Count Help Required

Hi there.

 

I am new to PowerBi and stuck on a DAX formula.

 

Basically in my table,  I have 3 columns that refer to 3 different answers from an individual in a survey. I want to create a 4th column to tell me how many of the other 3 columns they put in an answer for i.e. if they answer 2 out of the 3 questions, the 4th column will give me a 2 and so on.  This is based on one individual row. See example below with the column in bold is what I need.

 

NameStartEnd3monthResponseRate
Joe1453
Mary40 2

 

I have got it to work using :

M1Responses3month = INT(Table1[ M1Reg]<>BLANK())+INT(Table1[ M1End]<>BLANK())+INT(Table1[ M13Month]<>BLANK()), however it doesnt count the 0 as a filled cell so the second row on the example table above with 0 as one of the reponses. it returned 1 when it should be 2 as it is still a filled cell. How do I get around this?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , a new column in dax

if(isblank([column1]),0,1) + if(isblank([column2]),0,1)+if(isblank([column3]),0,1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , a new column in dax

if(isblank([column1]),0,1) + if(isblank([column2]),0,1)+if(isblank([column3]),0,1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you sooooo much!!!:D

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.