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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
KH_Mike
Helper III
Helper III

Show Annual Figure among YearMonth table

Hello,

I want to create a table which contain "YearMonth", "YTD", "This Month Result" and "Annual Result". Since my data contain serval year, I am not sure how to write the DAX in order to achieve it. I only have one table contain all the data including "Date" field. For the YTD (Fiscal Year), I use the DAX like below. 

Calculate(Sum(Result),DATESYTD(Data[Date],"03/31"))

I don't have any ideas how to always show the YTD for Fiscal Year end amount those "Date". Anyone can help or give some hints .... Thank you.

 

DateYTD (Fiscal Year)This Month ResultAnnual Result
2020-042290
2020-055390
2020-069490
2020-0714590
2020-0820690
2020-0927790
2020-1035890
2020-1144990
2020-12541090
2021-01651190
2021-02771290
2021-03901390
2021-041178
2021-053278
2021-066378
2021-0710478
2021-0815578
2021-0921678
2021-1028778
2021-1136878
2021-1245978
2022-01551078
2022-02661178
2022-03781278
2022-0400101
2022-0511101
2022-0632101
2022-0774101
2022-08136101
2022-09218101
2022-103110101
2022-114312101
2022-125714101
2023-017316101
2023-029118101
2023-0310120101
2023-04114
2023-05214
2023-06314
2023-07414

 

1 REPLY 1
lbendlin
Super User
Super User

Let the data model and the quick measures do the work for you.

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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