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
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
v-jiewu-msft
Community Support
Community Support

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
v-jiewu-msft
Community Support
Community Support

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
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.