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
Rishabh-Maini
Helper II
Helper II

Add MTD alongside other years in a matrix

Hi all,

 

I'm trying to build a matrix which displays the sum of values monthwise, with the current month labeled as "MTD". 
This MTD column should give me the value for the current month, regardless of what one selects in the date slicer.

For example:

 

RishabhMaini_0-1687750450678.png

This matrix should always have a column "MTD" which displays the values for current month no matter what the date is sliced to. 
For example, in the image below, if I select the date till 5/31/23, the MTD column should still exist and display the June values. 

 

RishabhMaini_1-1687750641796.png

 

Is this at all possible?

 

I'm attaching the sample .pbix file for reference here 

Thanks!

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

2 REPLIES 2
Ahmedx
Super User
Super User

Is this what you are looking for?

pls see file

https://1drv.ms/u/s!AiUZ0Ws7G26RiRnFZWS7TQL8vd9W?e=pDv85k

Hi @Ahmedx,

 

This is exactly what I was looking for. 

I'm fairly new to DAX. Could you help me understand the DAX you've used to achieve this?


I'd really appreciate it!

 

Thank you so much!

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.