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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create Measure for Attendance (100% or 0%)

Hi,

 

I've created a table by appending "Required Attendee" with "Attendance" with the goal of visualising this to see an Attendance report. As you can see, for this particular "Meeting ID" 4 people were invited, but only 2 people attended (Name ID = 1112 and Name ID = 1703).

 

mccardj_0-1665272047625.png

 

How can I write a measure to show the full list of attendees with a column showing those who attended as 100% and those who didn't as 0%?

Something like this:

Name IDAttendance
670%
1390%
1112100%
1703100%



 

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @Anonymous,

 

You can use the following DAX Formula to create the result table:

 

Attendance Percentage = SUMMARIZE('Table','Table'[Name ID],"Attendance",IF(MIN('Table'[Type])="Attendance",1,0))

 

Format the Attendance column as percentage to see this result:

 

Screenshot 2022-10-09 052259.jpg

 

Works for you? Mark this post as a solution if it does!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Perfect! Thanks so much for that!

Anonymous
Not applicable

Thanks but I get this error:

mccardj_0-1665274304492.png

 

Hi @Anonymous,

 

Since this will return a table, you can not create this formula as a measure. Use it to create a new DAX table.

 

Did I answer your question? Mark this post as a solution if I did! 

Shaurya
Memorable Member
Memorable Member

Hi @Anonymous,

 

You can use the following DAX Formula to create the result table:

 

Attendance Percentage = SUMMARIZE('Table','Table'[Name ID],"Attendance",IF(MIN('Table'[Type])="Attendance",1,0))

 

Format the Attendance column as percentage to see this result:

 

Screenshot 2022-10-09 052259.jpg

 

Works for you? Mark this post as a solution if it does!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors