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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bml123
Post Patron
Post Patron

Double heading matrix with calculated columns

I have some calculated columns and need double headings as below. All the columnsI just want to group the column headings and they are not linked to the data. Please can someone help on how to achieve this. 

 

Capture.PNG

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@bml123 yes it is possible to achieve this result. first you organize your data in below order. Then using matrix visual, you can create output table as per your need.

 

negi007_0-1599068753052.png

 

negi007_1-1599068763986.png

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

8 REPLIES 8
negi007
Community Champion
Community Champion

@bml123 yes it is possible to achieve this result. first you organize your data in below order. Then using matrix visual, you can create output table as per your need.

 

negi007_0-1599068753052.png

 

negi007_1-1599068763986.png

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thank you. How do I arrange the data in that order? Do I need to do unpivot?

negi007
Community Champion
Community Champion

@bml123 You would need alleast 3 columns (1. for Calculation type 2. Target 3. Actuals) I suggest you to share your data, I will then assist you accodingly. 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thank you. I could organise the data as you mentioned. I followed the link below for any one needing help like me.

https://kohera.be/blog/power-bi/how-to-unpivot-twice/

amitchandak
Super User
Super User

@bml123 , refer if this can help

https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

 

The easier way is to have text boxes on top of the matrix columns.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I don't want to use text box as the width of the columns are not fixed.

Is there any other easy way?

@bml123 , check 2-3 links I shared

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Pragati11
Super User
Super User

Hi @bml123 ,

 

Create 3 text boxes for the following:

  1. Month
  2. YTD
  3. MTD

Place these text boxes just above the headers of the matrix that you want to be included under these headings.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors