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?
Item | Jan | Feb | Average | Target |
Item1 | 10 | 20 | 15 | 17 |
Item2 | 5 | 5 | 5 | 4 |
Item3 | 50 | 60 | 55 | 57 |
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
Hi @summit20 ,
Please try:
1. unpivot the Jan and Feb column:
2.Create average measure:
Average = IF(HASONEVALUE('Table'[Month]),SUM('Table'[Value]),AVERAGE('Table'[Value]))
3.Create visuals:
4.Group these two visuals:
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.
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
Proud to be a Super User!
Paul on Linkedin.