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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
sandman153
Regular Visitor

Avg Subtotal

Hi 

 

I have a visual with a matrix and am trying to get the subtotals as an average rather than a sum. How would I go about doing this?

 

Is this feasible?


Thanks

Sarath

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, you can use "average per category" quick measure, to learn about "quick measures" check here.

 

In the example, with the quick measure i get "average of sales monthly" instead of the "sum of sales":

 

The code of the "quick measure" is:

 

SALES average per DATE =
AVERAGEX(
    KEEPFILTERS(VALUES('Table'[DATE])),
    CALCULATE(SUM('Table'[SALES]))
)



sales.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, you can use "average per category" quick measure, to learn about "quick measures" check here.

 

In the example, with the quick measure i get "average of sales monthly" instead of the "sum of sales":

 

The code of the "quick measure" is:

 

SALES average per DATE =
AVERAGEX(
    KEEPFILTERS(VALUES('Table'[DATE])),
    CALCULATE(SUM('Table'[SALES]))
)



sales.png

 

Thank you Maguilar. This helped me achieve Average value in column subtotals. 

Thanks Maguilar

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.