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
ed_raji
Frequent Visitor

Matrix: Show Total SUM of Averages in the Column subtotals.

Hello,

 

I have a data matrix running in Direct Query mode.

ed_raji_0-1603800975935.png

ed_raji_1-1603801372221.png

 

In the Values field of the matrix I have placed the Quantity with Summarization set to Average.

How can I still display the averages, but have the Sum of all the averages in the Total column.

So the Total column would display 175.84 for 2020 and 10.3 for 2021?

Thanks in advance.

 

 

3 REPLIES 3
amitchandak
Super User
Super User

@ed_raji , Try a measure like

sumx(values(Table[celdatetime]), calculate(Average(Table[Quantity])))

Once the measure is created, how do you reference it in the Total column of the matrix?

Hi @ed_raji ,

 

Please create a measure and put it in value of matrix:

 

 

measure = IF(HASONEVALUE('Table'[PriceAreaName]),AVERAGE('Table'[Quantity]),SUM('Table'[Quantity]))

 

 

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

 

Best Regards,

Dedmon Dai

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.