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
Dicken
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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,

 

Dicken
Continued Contributor
Continued Contributor

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

Dicken
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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
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.