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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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