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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.