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

Count the number of Occurence without Blank value

Hi I have table where I have data like this

 

Column1
aa
ss
 
aa
ss
bb

 

I need the occurence of each value like aa-2 , ss-2 bb-1 and i do not need occurence of blank values. How can I do that?

Thanks

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @zzzsharepoint ,
Please use below DAX in a calculated measure:

Count with NO Blank = IF(MAX('Table'[Column1]) <> BLANK(),COUNT('Table'[Column1]),"")


Result:

Anand24_0-1661503714890.png

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

View solution in original post

1 REPLY 1
Anand24
Super User
Super User

Hi @zzzsharepoint ,
Please use below DAX in a calculated measure:

Count with NO Blank = IF(MAX('Table'[Column1]) <> BLANK(),COUNT('Table'[Column1]),"")


Result:

Anand24_0-1661503714890.png

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

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.