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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Chewbc
Frequent Visitor

Matrix Columns - Summary prior year 2021 in single column and details 202 Year-Month Side by Side

2022-09-19_130908.jpg

As shown above I want to show only Summary fro 2021 and details by month for 2022. How to go about and format it? All the values are taken from measures. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Chewbc , You can have a column like this 

 

if(Year([Date])<year(today()) , format([Date], "YYYY-MM") , format([Date], "YYYY"))

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

View solution in original post

3 REPLIES 3
Chewbc
Frequent Visitor

2022-09-20_163700.jpg

The above is related to the earlier solution. All values in matrix are from measures. I have tried to get column A (sum of 6 mths value) and B (average of value) as above BUT you can't do much with sub and grand total visulaizations control.  Appreciate again @amitchandak your expertise how to go about having these columns right. 

Chewbc
Frequent Visitor

Thanks @amitchandak the above suggestion work well. 

amitchandak
Super User
Super User

@Chewbc , You can have a column like this 

 

if(Year([Date])<year(today()) , format([Date], "YYYY-MM") , format([Date], "YYYY"))

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.