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
tameismael
Helper I
Helper I

Count formula with nested IF

Dear members and users,

 

I have a question please; I have 3 date variables ( contact attempt1, contact attempt2, contact attempt3) . As mentioned all of them are date type I would like to use COUNTIFS or nested IF and COUNT formula sametime. The proposed formula could be; COUNTIFS( first variable is empty count it, otherwise return that value, second variable the same above condition, third variable also the same above condition).

 

would you please kind of formulate/write the syntax so I can have a clear idea .

 

many thanks in advance,

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@tameismael , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

There are many ways 

 

Countx(Table ,

Switch( True() ,

//Condition , // result,

//Condition , // result,

//deafult

)

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

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

@tameismael , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

There are many ways 

 

Countx(Table ,

Switch( True() ,

//Condition , // result,

//Condition , // result,

//deafult

)

 

Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56

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

Yes thank for your response  the data fields in pbix image attached , the data didn't populate yet I'm waiting for the data entry from the users side. But can you maybe please formulate the condition/result way so I. An have an idea. Thanks 

896DE49B-06D7-4AE7-8B19-67E328DA70F6.png

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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