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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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