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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.