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
EMWDLX
New Member

Matrix Question

Is it possible to show the average over 4 weeks instead of the total (e.g. 99,930 for the first row)?  

 

EMWDLX_0-1708625712774.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @EMWDLX ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1708675417222.png

2.Create the new measure to calculate average.

 

Average Sales = 
var T = SUM('Table'[Sales])
RETURN
IF (
    ISINSCOPE ('Table'[week]),
    T,
   T/4)

 

3.Drag the measure into the matrix values.

vjiewumsft_1-1708675455936.png

4.Edit the Column subtotal label.

vjiewumsft_2-1708675488503.png

5.The result is shown below.

vjiewumsft_3-1708675497632.png

 

Best Regards,

Wisdom Wu

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

2 REPLIES 2
Anonymous
Not applicable

Hi @EMWDLX ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1708675417222.png

2.Create the new measure to calculate average.

 

Average Sales = 
var T = SUM('Table'[Sales])
RETURN
IF (
    ISINSCOPE ('Table'[week]),
    T,
   T/4)

 

3.Drag the measure into the matrix values.

vjiewumsft_1-1708675455936.png

4.Edit the Column subtotal label.

vjiewumsft_2-1708675488503.png

5.The result is shown below.

vjiewumsft_3-1708675497632.png

 

Best Regards,

Wisdom Wu

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

 

 

 

 

Fowmy
Super User
Super User

@EMWDLX 

Try something like:

Sales Amount New = 
	IF(
		ISINSCOPE( financials[week Number]),
		[Sales Amount],
		AVERAGEX(
			VALUES( financials[week Number] ),
			[Sales Amount])
		)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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