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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
didierwindey
Regular Visitor

TOTALYTD powerpivot > not calculating

Hi,

 

I need the YTD totals for a reporting project with PowerPivot (not PowerBI).  Whatever I try, the values are not adding, an I just get the original value... 

 

TOTALYTD(SUM([AantalVanNaar-magazijneenheid); tblDatums(Datum)) and some variations

 

I have a dates table, linked to the other tables. Is there some issue here ?

 

Knipsel2.PNGKnipsel1.PNG

 

thanks in advance

 

Didier

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi Didier,

 

As we can see from your picture, you can't create a proper relationship with the columns that you already have. The relationship should base on the dates rather than the first day of the month. You can check it out in this file.

 

I think you need to make some changes of the formula to make it work as a calculated column. (I tested with TOTALMTD)

 =
CALCULATE (
    TOTALMTD ( SUM ( [Value] ), 'RightTable'[Date] ),
    ALLEXCEPT ( 'RightTable', 'RightTable'[date] )
)

TOTALYTD_powerpivot_not_calculating

 

BTW, please go to here for professional help if you have questions about Excel. If this helps, please mark it as answer.

 

Best Regards,

Dale

Community Support Team _ Dale
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

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi Didier,

 

As we can see from your picture, you can't create a proper relationship with the columns that you already have. The relationship should base on the dates rather than the first day of the month. You can check it out in this file.

 

I think you need to make some changes of the formula to make it work as a calculated column. (I tested with TOTALMTD)

 =
CALCULATE (
    TOTALMTD ( SUM ( [Value] ), 'RightTable'[Date] ),
    ALLEXCEPT ( 'RightTable', 'RightTable'[date] )
)

TOTALYTD_powerpivot_not_calculating

 

BTW, please go to here for professional help if you have questions about Excel. If this helps, please mark it as answer.

 

Best Regards,

Dale

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.