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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
vally57
Helper I
Helper I

Calculate YTD

Hello Experts,

I have created YTD calculation, but the result is not coming as expected. It is not showing any values.

Can anyone help me by looking from the file attached.
https://www.dropbox.com/s/dvh41vo45igf94v/F1%20-%20Test.pbix?dl=0

Thanks in Advance.


1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @vally57 ,

 

Please try:

GC YTD Current Year Actual = TOTALYTD(SUM('Fact Finance General Ledger'[GC Debit Credit Amount]),'Fiscal Period'[Calendar Date])

Final output:

vjianbolimsft_0-1666143172555.png

 

Best Regards,

Jianbo Li

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
iamnewinpowerbi
New Member

Hi,

 

What if I only have YYYY without the YYYY-MM-DD. Can it still get YTD?

v-jianboli-msft
Community Support
Community Support

Hi @vally57 ,

 

Please try:

GC YTD Prior Year Actual = CALCULATE(SUM('Fact Finance General Ledger'[GC Credit Amount]),FILTER(ALL('Fiscal Period'),'Fiscal Period'[Fiscal Year]=MAX('Fiscal Period'[Fiscal Year])-1))

Output:

vjianbolimsft_0-1666592823996.png

Best Regards,

Jianbo Li

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

 

v-jianboli-msft
Community Support
Community Support

Hi @vally57 ,

 

Please try:

GC YTD Current Year Actual = TOTALYTD(SUM('Fact Finance General Ledger'[GC Debit Credit Amount]),'Fiscal Period'[Calendar Date])

Final output:

vjianbolimsft_0-1666143172555.png

 

Best Regards,

Jianbo Li

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

Thanks @v-jianboli-msft . It is working now. 
I tried to create prior year for the same 

GC YTD Prior Year Actual = CALCULATE([GC YTD Current Year Actual], SAMEPERIODLASTYEAR('Fiscal Period'[Calendar Date].[Date]))
But the value I'm getting is same value of YTD

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.