Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

YTD calculation on month data

How to calculate YTD data untill the latest full month. The data is on month base and not on date base

Super User
Super User


You try the 

TOTALYTD(SUM('table'[value]), 'dates'[Date])

Did I answer your question? Mark my post as a solution! and hit thumbs up

Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thnx Fowmy for the quick anwser.  For the Month I use a simple table and the problem is that this is not a date table but a text table. 

test = TOTALYTD(CALCULATE('COF 2021'[COF % CY]), 'Calendar_final'[Month_name]) it is not giving an error but visual says it is not a type date



Hi, @Humberto1959 ;

If this is not a text type, you can try to use CONVERT() to convert the text type to a date type.such as:

Column = CONVERT([Column1],DATETIME )

If it doesn’t solve your problem, can you share pbix or screenshots whitout any sesentive information, and the results you want to output?

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!