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

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

Reply
hari_bi
Helper I
Helper I

Not able to sum the values in YTD?

Hello All,

 

Please fine the below table:-

YTD Values.PNG

Requirment :- Need to find YTD for Pro measure, but summing the values are not done as per expectation which is heighlated in Yellow.

Formulas:-

ActShip = Sum(Shipments) and Actforecast = Sum(Forecast)

Pro = IF( ISBLANK([ShipAcutals]) ,[ActForecast] , [ShipAcutals])

 

here i am using Pro YTD = CALCULATE('ShipmentForecast'[Pro],
DATESYTD('Date'[Date],"6/30"),ALL('Date')).

 

Here i have one ForecastYTD Measure its working fine but not Pro YTD.

Please let me know how i need to find the YTD based on Pro Measure.

 

Please Find the below link for the PBI File.

 

https://www.dropbox.com/s/6p8kdrt93ctbq87/YTD.pbix?dl=0

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

After my research, you can do these follow my steps like below:

Step 1:

Add a new calculate table:

Table = SUMMARIZE('Date','Date'[Fiscal Year],'Date'[Year Month],"ActForecast",[ActForecast],"ActShip",[ActShip])

Step 2:

Add a column for new column:

Pro = IF('Table'[ActShip]=BLANK(),'Table'[ActForecast] ,'Table'[ActShip])

Step 3:

Create relationship between Date and new table

7.png

Step 4:

Add YTD measure:

Ytd pro = CALCULATE(SUM('Table'[Pro]),
DATESYTD('Date'[Date],"6/30"),ALL('Date'))

8.png

Here is demo , please try it

https://www.dropbox.com/s/iuocxa9kmpgn162/YTD%20NEW.pbix?dl=0

 

 

 

 

Best Regards,

Lin

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

Hi,

Created one meausre like below:

Pro = IF( ISBLANK([ShipAcutals]) ,[ActForecast] , [ShipAcutals])

when i am using this measure in report , values are populating as per the exception , but look at total it shows wrong values.

 

Regards,

Hari.

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