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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ktt777
Helper V
Helper V

YTD calculation does not work

Hi all,

 

I am calculating YTD value but it does not show up. 

Please if anyone can help 

Here is the link to the sample file Test YTD.pbix

My actualy file have multiple country, it works for some countries, and some don't

Thanks.

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Kishore_KVN
Super User
Super User

Hello @ktt777

In the file it is observed that you have created relationship between Calendar Table Date and Table 2 Account columns. So change that relation to Table 2 Period then you can see the output. 

For measure you can create simply like:

CALCULATE(SUM('Table (2)'[ USD ]),DATESYTD('Calendar'[Date]))

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

2 REPLIES 2
Kishore_KVN
Super User
Super User

Hello @ktt777

In the file it is observed that you have created relationship between Calendar Table Date and Table 2 Account columns. So change that relation to Table 2 Period then you can see the output. 

For measure you can create simply like:

CALCULATE(SUM('Table (2)'[ USD ]),DATESYTD('Calendar'[Date]))

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Ahmedx
Super User
Super User

pls try this

Screenshot_2.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.