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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
antjos
New Member

Mean and Count by category of a list

HI All, 

I have the following table which looks at attendance in a day and need to get summary value by Month. 

 

Jan 1 Tom
Jan 1Jerry
Jan 1Juan
Jan 1Franco
Jan 1Bugs
Jan 2Tom
Jan 2Jerry
Jan 3Tom
Jan 3Bugs
Jan 3Tom
Feb 1Tom
Feb 2Bugs
Feb 2 Jerry
Feb 3Franco
Feb 4Juan

 

I want to count the number of people each day which I could achive by distinct count. 

However, I am struggling a bit to get 

Mean Attendance per Month (which would be mean of total attendance per day). I am currently using PowerPivot but i assume it is the same as PowerBI

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@antjos , You need to have measures like

 

Averagex( Values(Table[Date]), calculate(distinctcount(Table[Name])) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@antjos , You need to have measures like

 

Averagex( Values(Table[Date]), calculate(distinctcount(Table[Name])) )

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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