Forum Discussion

EMWDLX's avatar
EMWDLX
New Member
2 years ago
Solved

Matrix Question

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

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi EMWDLX ,

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

    1.Create the simple table.

    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.

    4.Edit the Column subtotal label.

    5.The result is shown below.

     

    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.

     

     

     

     

2 Replies

  • EMWDLX 

    Try something like:

    Sales Amount New = 
    	IF(
    		ISINSCOPE( financials[week Number]),
    		[Sales Amount],
    		AVERAGEX(
    			VALUES( financials[week Number] ),
    			[Sales Amount])
    		)
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi EMWDLX ,

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

    1.Create the simple table.

    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.

    4.Edit the Column subtotal label.

    5.The result is shown below.

     

    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.