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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jackypatel
Helper I
Helper I

Need YTD Sum

As per Below table

 

MonthValueYTDLogic
Apr-23278.5278.5Apr-23
May-23181.9460.4Apr-23+May-23
Jun-23147.5607.9Apr-23+May-23+Jun-23

Continue till Mar-24 

 

And Same will start for Apr-24

 

Plz help to resolve this

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @jackypatel  - You can use DAX to calculate the YTD values.This approach also calculates the YTD value but uses a filtering logic to include only months within the same fiscal year.

YTD Value =
CALCULATE(
SUM(Table[Value]),
DATESYTD(
Table[Month],
"03-31" // End of fiscal year (March 31)
)
)

 

I hope you have a calendar table created in your model. please replace the same and place the value field.

 

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @jackypatel  - You can use DAX to calculate the YTD values.This approach also calculates the YTD value but uses a filtering logic to include only months within the same fiscal year.

YTD Value =
CALCULATE(
SUM(Table[Value]),
DATESYTD(
Table[Month],
"03-31" // End of fiscal year (March 31)
)
)

 

I hope you have a calendar table created in your model. please replace the same and place the value field.

 

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you

Helpful resources

Announcements
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.