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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Matrix Visual question

 HI, 

Can we achieve soemthign like this in Matrix?

 

I want to add the data 4 as a row as shown below?

 

     Data1 Data2  data3
  Data4 123 445 5565
Year Month      
2020 Jun 5454 565 767
    34 34 5656
    343 232 454
    533 11 3

 

Thanks,

TD

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

If you want to add row in Matrix, I think you need to use M code to add it , you could refer to my sample for details. Or you could create rolling 3 and rolling 12 measure and show result in Table.

Best Regards,
Zoe Zhi

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

8 REPLIES 8
dax
Community Support
Community Support

Hi @Anonymous , 

Yes, as @mwegener  mentioned, if possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

HI @dax  and @mwegener ,

Sorry for late reply.

 

Here is my example 

I have a Text Column with field values as Data1, Data2 and Data3. I have put that column of matrix

Sales Revenue which I put in the Values  of matrix

 and The year/Mo in the row of Matrix in Power Bi.

 

Now in the same matrix, I want to add the row for Rolling 3 and Rolling 12 just below the year/Mo  so that I can see the rolling 3 for each of my Data1, Data2 and Data3

 

image for your refernce. can this be achievable in Matrix visual?

 

 

tejaswidmello_0-1594410667951.png

 

Thanks,

Tejaswi

dax
Community Support
Community Support

Hi @Anonymous , 

If you want to add row in Matrix, I think you need to use M code to add it , you could refer to my sample for details. Or you could create rolling 3 and rolling 12 measure and show result in Table.

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

HI @dax ,

Thank you!

This works if my Sales revenue is Column, 

But what if we have Calculated maeasures for sales revenue?

can this be done aswell?

 

Thanks,

Tejaswi

dax
Community Support
Community Support

Hi @Anonymous , 

You could refer to my sample for details. If you want to create other measure, you could copy my measure , then change the month+n in measure, which should work.

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

HI @dax ,

Thanks a lot!

 

I think this will work.

 

let me try it today and get back to you for any questions.

 

Thanks,

Tejaswi

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

maybe this helps.

https://github.com/fredrikheden/summarytable

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous

 

can you provide more information?

What does the raw data look like?

How is the matrix to be read?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.