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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.