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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
georgy
Frequent Visitor

TOTALYTD is not working

Hi,

TotalYTD function does not return the right value for me. I have DATE table which is linked to other tables.

I have the following data:

1. Sales Actual

2. Sales F-1 FY 20 Forecast 

3. Sales F-2 FY 20 Forecast

 

I created a measure Sales FSCT that uses Sales ACT and if Actual Sales are zero then Sales F-2 FY20 FCST is used. 

Then I added Sales YTD FCST = TOTALYTD(Sales FCST, Date, "31/03") but as you can see from photo it stops adding sales when Sales ACT is zero, even though Sales FCST measure shows the right numbers.

Can anyone help please.

Cheers

Capture.JPG

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@georgy 

 

Take a good look at link below to have a better understanding of time intelligence function.

https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.