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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.