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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to : Matrix Average values and sum subtotal

Hi eveybody,

I have some values like this

tgz666_0-1663831797101.png

and Matrix Object like that

tgz666_1-1663831856283.pngtgz666_2-1663831876099.png

For each REF i have the monthly average (OK, it's what i want) but for the PTF subtotal i wish the sum of averages not the average

for example : PTF1/202202 (aaaaa+bbbbb = 6.00+3.50) = 9.50 not 4.75

How can i do that ?

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Unfortunatly, isn't ok sub total PTF isn't equal to sum(ref)

tgz666_0-1663854550460.png

I have found an another method with transformation data : Group By

= Table.Group(#"Added Custom", {"PTF", "yyyymm", "REF"}, {{"ValueMoy", each List.Average([Value]), type nullable number}})

tgz666_1-1663854736959.png

It's ok

 

 

View solution in original post

2 REPLIES 2
serpiva64
Super User
Super User

Hi,

try this measure

Measure = if (HASONEVALUE('Table'[REF]),AVERAGE('Table'[Value]),calculate(AVERAGE('Table'[Value]), ALL('Table'[Date])))
 
you will obtain this
serpiva64_0-1663836154532.png

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution !

 

Anonymous
Not applicable

Unfortunatly, isn't ok sub total PTF isn't equal to sum(ref)

tgz666_0-1663854550460.png

I have found an another method with transformation data : Group By

= Table.Group(#"Added Custom", {"PTF", "yyyymm", "REF"}, {{"ValueMoy", each List.Average([Value]), type nullable number}})

tgz666_1-1663854736959.png

It's ok

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.