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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Vallirajap
Resolver III
Resolver III

Cumulative Total Mistake Month-wise

Hii All,

I want to find the YTD for the fiscal year. So I use two types of functions: DatesYTD and TotalYTD.


DatesYTD = CALCULATE([Dummy], DATESYTD('Date'[Date], "3/31"))   
         //Dummy as a measure contains a lot of variables in addition to giving the output.
Total YTD = TOTALYTD([Dummy], 'Date'[Date], "3/31")

 

The two display the same thing, but it is wrong.

 

Vallirajap_0-1715680840880.png

 

In my scenario,
Apr/23 = 683 
May/23 = 698    => 683 + 698 = 1381, but the YTD displays 1034.

Nearly 347 is missing in the YTD formula, but the next month is calculated correctly. 347 is missing for the whole YTD.


Is there any problem implementing YTD, and is there any other formula to find the YTD?


Also, I am using the below one, but I don't know how to break the YTD for the fiscal year. is calculating the YTD for the whole year in the dataset.

Dummy 2 =CALCULATE([Dummy], FILTER( ALL('Date'), 'Date'[Date] <= MAX('Date'[Date])))


Anyone who knows, please tell
Thanks in advance! 



 

 

 

 

1 REPLY 1
v-yohua-msft
Community Support
Community Support

Hi, @Vallirajap 

The missing 347 in the calculation may be due to missing data for some month in the dataset or incorrect aggregation in the measure. Review the underlying data for any gaps or errors that could cause the totals to be incorrect.

 

If you can, please provide more details with your desired output and pbix file without privacy information (or some sample data)

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.