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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)