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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Counting Total excluding Missing Values

Good Afternoon

 

I need some help with a measure please.

 

In my data i have the below:

 

EventCode,  Month,  Person Count

1,                    1 ,          

1,                    2,                 26

1,                    3,                 35

 

Code is replicated each month, however there is not a count for each month. What i need to do is count the total number of each code where there is a count.

So in the example above the count of code would be 2.

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Num rows =
COUNTROWS ( FILTER ( 'Table', 'Table'[Person Count] > 1 ) )

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you, that has worked it was so much simpler than i was expecting it to be.

johnt75
Super User
Super User

Try

Num rows =
COUNTROWS ( FILTER ( 'Table', 'Table'[Person Count] > 1 ) )

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.