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

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

Reply
JoanCampbell
Frequent Visitor

If statement to return a numeric value if column contains any value.

This is what I used 

Beginner here
My formula works : Count of Activity = IF(ISBLANK('Distribution'[ Activity]),"","1") 
But it returns a text vaule and I need it to be a numeric value, because I need to count them in a table by activity.  

Changing the Data type causes an error  

Please help

JoanCampbell_1-1636561633095.pngJoanCampbell_2-1636561773067.png

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Try returning a number instead of a text.

 Count of Activity = IF(ISBLANK('Distribution'[ Activity]),BLANK(),1) 

 

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

Try returning a number instead of a text.

 Count of Activity = IF(ISBLANK('Distribution'[ Activity]),BLANK(),1) 

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors