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
Eyelyn9
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

Eyelyn9
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.