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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Dicken
Responsive Resident
Responsive Resident

Stop nesting in Matrix visual


Hi, can someone tell if   / how I can  stop nesting of month within year of a matrix ; 
 my calendar is ; 

CalTable =
VAR mindate = MIN(Table1[Date])
VAR maxdate = MAX(Table1[Date])
RETURN
ADDCOLUMNS(
CALENDAR( mindate, maxdate )  ,
"Year", YEAR([Date]) ,
"Sort", MONTH([Date]) ,
"Month", FORMAT([Date],"MMM")

I am not using the auto created hierarchy just year and month in the rows. 

Richard 
1 ACCEPTED SOLUTION
Dicken
Responsive Resident
Responsive Resident

The best I've come up with is to go to layout  style minimal , layout tablular then 
go to rows and toggle off the expand colapse . 

View solution in original post

7 REPLIES 7
DataNinja777
Super User
Super User

Hi @Dicken ,

 

If you are referring to the nesting like shown below, you can change the layout style to Tabular format by following these steps:

DataNinja777_0-1730012669153.png

Best regards,

 

Yes thats what I did and then toggle off the expand colapse. 

Dicken
Responsive Resident
Responsive Resident

The best I've come up with is to go to layout  style minimal , layout tablular then 
go to rows and toggle off the expand colapse . 

Anonymous
Not applicable

Hi @Dicken ,

Thank you for sharing your solution with us, we're glad to see that you solved your problem! Please don't forget to accept your reply as solution to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,
Dino Tao

yes that would work as well



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Dicken
Responsive Resident
Responsive Resident

Thanks for the response I was not wanitn to create a y / m column but thanks for the suggeston. 

hnguy71
Super User
Super User

Hi @Dicken ,

You would create a new column for the Month and Year together, like so:

CalTable =
VAR mindate = MIN(Table1[Date])
VAR maxdate = MAX(Table1[Date])
RETURN
ADDCOLUMNS(
CALENDAR( mindate, maxdate )  ,
"Year", YEAR([Date]) ,
"Sort", MONTH([Date]) ,
"Month", FORMAT([Date],"MMM"),
"Period", FORMAT([Date], "MMM YYYY"),
"YearMonthInt", VALUE(FORMAT([Date], "YYYYMM"))
) 

 

Use the period column instead and of course sort it by the Year Month Int column.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors