cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
summit20
Helper I
Helper I

Add value to powerbi matrix without making a new column

I have created a matrix with some transaction data. I want to display the monthly amounts as columns, but add a column at the end that shows average and target. When I add my measure which calcultes average, it adds it to every single month. Is there a way to display the column just at the end. Ideally it would look like this. Is it possible to add a column to a matrix without it adding it next to every month?

ItemJanFebAverageTarget
Item110201517
Item25554
Item350605557

WithAverage.PNG

WithoutAverage.PNG

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @summit20 ,

 

Could you tell me if my post helps you? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.Hope to hear from you‌‌

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @summit20 ,

 

Please try:

1. unpivot the Jan and Feb column:

Eyelyn9_0-1630980411013.png

2.Create average measure:

Average = IF(HASONEVALUE('Table'[Month]),SUM('Table'[Value]),AVERAGE('Table'[Value]))

3.Create visuals:

Eyelyn9_3-1630980670764.png

4.Group these two visuals:

group two visuals.gif

 

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

PaulDBrown
Super User
Super User

The easiest way is to hide the columns for [Average] in each of the months by dragging the field boundary, but you will need to turn off the "Word wrap" and possibly the "Auto-width" in the formatting options for columns in the formatting pane. 
If you need a more "complex" structure, you can create a custom layout. Here is a "tutorial" on how to achieve this:

How to create a custom or hybrid matrix  





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors