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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ADA371
New Member

Perform TOTALYTD with fixed existing measure

Hi all ! 

 

I have a real problem to perform a specific calculation with power bi desktop... 

I try to do a TOTALYTD based on an existing Measure but it doesnt work. 

 

My existing Measure is: PPM_Performance = (SUM(PPM_Nombre_avis)/SUM(PPM_Nbr_Lignes))*1000000

My YTD Measure: PPM Performance YTD = TOTALYTD([PPM Performance],DIM_Temps[Caldate])

 

Result for 2021 Février is: 242.31

Expected Result is: 484 (233+251)

 

I think the solution is to fix the result of the existing measure PPM Performance but the new measure PPM Performance YTD do nex calculation with SUM of PPM_Nombre_avis and PPM_Nbr_Lignes from the beginning of the year... 

 

My Datas:

ADA371_2-1645538428993.png

 

Thank you for your help

 

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@ADA371,

 

Try this measure. Your date table needs a year/month column such as [Year Month Num] (e.g., 202101).

 

PPM Performance YTD =
CALCULATE (
    SUMX ( VALUES ( DimDate[Year Month Num] ), [PPM_Performance] ),
    DATESYTD ( DimDate[Date] )
)

 

DataInsights_0-1645630159624.png

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@ADA371,

 

Try this measure. Your date table needs a year/month column such as [Year Month Num] (e.g., 202101).

 

PPM Performance YTD =
CALCULATE (
    SUMX ( VALUES ( DimDate[Year Month Num] ), [PPM_Performance] ),
    DATESYTD ( DimDate[Date] )
)

 

DataInsights_0-1645630159624.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors