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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
yepurs
Regular Visitor

how to add average column for matrix visual

how to add avarage coulmn for matrix visual, I want one extra coumn and with avargae values of six months 

yepurs_0-1688557187011.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @yepurs ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1688699050730.png

Please try:

Apply the measure and rename column subtotal

Measure = IF(ISINSCOPE('Table'[Month]),SUM('Table'[Value]),AVERAGE('Table'[Value]))

Final output:

vjianbolimsft_1-1688699236815.png

Best Regards,

Jianbo Li

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

View solution in original post

3 REPLIES 3
yepurs
Regular Visitor

Thank you so much for your help!

Can you please help me how to add the minimum and maxmum values for the same 

Hi @yepurs ,

 

If you need more than one column, you should change your data model.

Here  is an example:

First create a new table like this:

vjianbolimsft_3-1689318044863.png

Then manage relationship:

vjianbolimsft_4-1689318058050.png

Then apply the measure:

Measure = 
SWITCH(TRUE(),
SELECTEDVALUE('Table 2'[Month]) in ALL('Table'[Month]),SUM('Table'[Value]),
SELECTEDVALUE('Table 2'[Month])="Maxmum",MAXX(ALLEXCEPT('Table','Table'[ID]),[Value]),
SELECTEDVALUE('Table 2'[Month])="Minimum",MINX(ALLEXCEPT('Table','Table'[ID]),[Value]))

Final output:

vjianbolimsft_2-1689318028086.png

 

 

Best Regards,

Jianbo Li

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

v-jianboli-msft
Community Support
Community Support

Hi @yepurs ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1688699050730.png

Please try:

Apply the measure and rename column subtotal

Measure = IF(ISINSCOPE('Table'[Month]),SUM('Table'[Value]),AVERAGE('Table'[Value]))

Final output:

vjianbolimsft_1-1688699236815.png

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors