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
Mega79
Helper I
Helper I

Sum of Average in Matrix visualization

Hi all, I'm trying to have the last line as a total of all average data shown in table. Basically all data shown by day is an average per day of a whole year. But when I use the Matrix visualization I cannot see the total but only the average of all SKUs... when I actually want the total of all SKUs.

 

Can anyone help?

Thanks.

 

Table.JPGTable 2.JPG

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Mega79

 

You are missing a ) after Values(Sheet1[SKU]   

 

Regards

 




Lima - Peru

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@Mega79

 

Hi, you need to create a measure:

 

AverageVolumen = AVERAGE(Table1[Volumen])

 

And another :

 

MeasuretoUse =
IF (
    HASONEVALUE ( Table1[SKU] );
    [AverageVolumen];
    SUMX ( VALUES ( Table1[SKU] ); [AverageVolumen] )
)

 

Img.png

Regards

 

Victor




Lima - Peru

Thanks for your response velarde. But it's giving me an error in the formula (see below)

 

Capture.JPG

Vvelarde
Community Champion
Community Champion

@Mega79

 

You are missing a ) after Values(Sheet1[SKU]   

 

Regards

 




Lima - Peru

Thanks a lot for your help!!

It worked perfectly.

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.