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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
admin11
Memorable Member
Memorable Member

How to make YTD amount display 2021 Jan till Dec ?

Hi All

Below expression working fine :-
Target YTD =
var _max = today()
return
calculate(TOTALYTD(('TARGET_'[TARGET_]),'Date'[Date]),filter('Date','Date'[Date]<=_max))
 
Can some one share with me how to modify the expression , so that Table 2 can display 2021 whole year target amount , when i click on year=2021 month=12. 
 

admin11_0-1611909129544.png

 

1 ACCEPTED SOLUTION

Hi @admin11 ,

 

Unfortunately, I can't access the link you shared.

If the problem persists,could you share the sample pbix again?

If you publish duplicate threads, please delete useless threads.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@admin11 , try a formula like

This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))
Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
admin11
Memorable Member
Memorable Member

Hi @admin11 ,

 

Unfortunately, I can't access the link you shared.

If the problem persists,could you share the sample pbix again?

If you publish duplicate threads, please delete useless threads.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lianl

Thank you for looking into my post , i have already solve the issue.

Paul

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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