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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Gondebas
Frequent Visitor

DAX measure returning YTD for current month only?

How to calculate measure returning YTD for current month only? I have added these measures:

MTD = CALCULATE(SUM(FactTable[Value]))
YTD = TOTALYTD(FactTable[MTD];'Calendar'[Date])

I what to make a chart with data for current month only. But when I add visual fiter to chart on IsCurrentMonth for "Yes" then I get wrong figures. Calculation for YTD is done only for March, returning 33 instead of 66.

 

 

YTD measure for current month only

1 REPLY 1
technolog
Super User
Super User

Can you please tell me if the problem is still relevant? If you managed to solve it in some way, please write here how you solved this problem. Then it will be possible to mark this problem as solved.

If not, it may make sense to ask the question again, thus confirming the relevance of this problem.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors