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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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