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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Darwell
Frequent Visitor

Average for matrix columns

Screenshot 2024-02-13 at 20.44.23.pngI have this matrix table which is showing two different meeting rooms. (EP.02.M01) and (EP.02.M02) Then have a slice which allows me to adjust the date range.  The values in the rows shows, displays how many chairs were used with the hour column.


What I want to get out of this is an acurate average, for example meeting room M02 at 10 am added up to 6 chairs used over the 4 days. So 6/4 = 1.5 (This is the vaule that I want). I can only figure out the total days 6/5 = 1.2, which isnt a true reflection. 

Just on a side note, this data is coming from a direct quary.

 

Thank you in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Darwell 

 

Please read this example:
First of all, I create a set of sample:

vzhengdxumsft_0-1707881923979.png

Then add a measure:

 

Measure = 
CALCULATE(
		COUNTROWS('Table'),
		'Table'[Column1] <> BLANK()
	)

 

The result is as follow:

vzhengdxumsft_1-1707882005122.png

 

Best Regards,

Zhengdong Xu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Darwell 

 

Please read this example:
First of all, I create a set of sample:

vzhengdxumsft_0-1707881923979.png

Then add a measure:

 

Measure = 
CALCULATE(
		COUNTROWS('Table'),
		'Table'[Column1] <> BLANK()
	)

 

The result is as follow:

vzhengdxumsft_1-1707882005122.png

 

Best Regards,

Zhengdong Xu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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