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
ak77
Post Patron
Post Patron

Subheaders for matrix

Hi all,

 

Not sure if this was discussed before.. so posting. please check if possible and let me know

 

i have a matrix with time measures for Returns and Market value . i need a subheader Returns and Market value displayed as above for matrix. is there a way to achieve this

 

ak77_0-1718827443725.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from @ExcelMonke , please allow me to provide another insight:
Hi,@ak77 
Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1718871091013.png

3.Create calculated column references:

 

sam = 
VAR cc=RANDBETWEEN(0,1)
RETURN IF(cc=1,
"Returns",
"Market value ")

 

But there are also specific MTD columns, QTD columns, and YTD columns that need to be created based on your specific data structure.


4.Then set the visual object as follows:

vlinyulumsft_1-1718871134536.png

5.Here's my final result, which I hope meets your requirements

vlinyulumsft_2-1718871154184.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

3 REPLIES 3
ExcelMonke
Super User
Super User

Hello,

Your question is not quite clear. Could you rephrase? 

Based on your current explanation, this can be done by moving the column with the Returns/Market Value values into the columns section of your matrix.





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

Proud to be a Super User!





Hi @ExcelMonke 

 

Thanks for reply.. my question was can we add a sub header to group of columns.. Returns/Market Value are the 2 subheaders for each set of MTD , QTD and YTD matrix columns 

 

Can u please let me know.. do u have a sample to share? this wil help me a lot

 

Anonymous
Not applicable

Thanks for the reply from @ExcelMonke , please allow me to provide another insight:
Hi,@ak77 
Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1718871091013.png

3.Create calculated column references:

 

sam = 
VAR cc=RANDBETWEEN(0,1)
RETURN IF(cc=1,
"Returns",
"Market value ")

 

But there are also specific MTD columns, QTD columns, and YTD columns that need to be created based on your specific data structure.


4.Then set the visual object as follows:

vlinyulumsft_1-1718871134536.png

5.Here's my final result, which I hope meets your requirements

vlinyulumsft_2-1718871154184.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

 

 

 

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.