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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
gingerclaire
Helper III
Helper III

Count number of attendees based on non blank attendee name fields

I have a table for an appointment and it has columns as follows for each event (each row):

 

Attendee 1 name

Attendee 2 name

Attendee 3 name

Attendee 4 name

Attendee 5 name

Attendee 6 name

(all the way to 16!)

 

I need a measure to count the number of attendees at each appointment - by counting the non blanks in the name field.

 

I am completely stuck on how to do this - please can you help?

3 REPLIES 3
djurecicK2
Super User
Super User

djurecicK2
Super User
Super User

Hi @gingerclaire ,

 You should be able to use the COUNTA function to do this.

(Adapt for your table and field names)

 

Number of Attendees= COUNTA(Table[FieldName])

 

https://learn.microsoft.com/en-us/dax/counta-function-dax

Counts the number of rows in the specified column that contain non-blank values.

 

Please consider accepting as solution if this answers the question- thanks!

Thank you - I need to be able to do this across multiple fields for the table as below (I actually have 16 attendee fields):

 Attendee1nameAttendee2nameAttendee3nameAttendee4nameAttendee5nameAttendee6nameTotal attendees
Event 1JohnSarahJamesGeoff  4
Event 2HelenBob    2

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.