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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Amit_Saxena
Microsoft Employee
Microsoft Employee

How to calculate monthly numbers from YTD values

Hi ,
 Need help, if i have monthly YTD numbers against month, how can i get the montly data, here for example if i have Month, and YTD then how will i calculate Sales, pls suggest?
 
Month       Sales-?      YTD   
Month1       300       300   
Month2       400       700   
Month3       250       950 
Regard,
Amit
10 REPLIES 10
Amit_Saxena
Microsoft Employee
Microsoft Employee

Many thanks for your reply, this is how exactly my data:

MonthCountryYTD SALESMONTHLY Sales
M1A1300?
M1A2250?
M1A3400?
M2A1400?
M2A2350?
M2A3600?
M3A1500?
M3A2600?
M3A3700?

 

I need the monthly sales numbers, by using your formula i am not getting the desired result, Would ne great if you could help?

 

Regards,

Amit

Hi,

Will the month column actually have M1, M2 entries or will it have Jan, Feb etc.?  Share the actual entries that are there in the Month column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for your reply Ashish, These are actual Months no specific dates, i treid the date diff formula but it's not working.

As requested in my message earlier, share the actual entries in that column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Here are the values:

 

DateMonthCountryYTD SALESMONTHLY Sales
1/15/2020Jan'20US300?
1/15/2020Jan'20UK250?
1/15/2020Jan'20JPN400?
2/15/2020Feb'20US400?
2/15/2020Feb'20UK350?
2/15/2020Feb'20JPN600?
3/15/2020Mar'20US500?
3/15/2020Mar'20UK600?
3/15/2020Mar'20JPN700?

 

Regards,

Amit 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish, Zoe & Amit for your responses and suggestions and apologies for responding too late on this but i am still struggling wiht the issue, may be some fundamental challenges, i might need to share some more dummy data with the actual senarios.

Hi @Amit_Saxena , 

You could try below  measure to see whether it work or not.

Measure 2 = SUM(t2[YTD SALES])-CALCULATE(SUM(t2[YTD SALES]), FILTER(ALLEXCEPT(t2,t2[Country]),MIN(t2[Date])=DATEADD('t2'[date],1,MONTH)))

 637.PNG

Best Regards,
Zoe Zhi

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

amitchandak
Super User
Super User

Have new columns like

last Month= maxx(FILTER(Data, Data[Month]< EARLIER(Data[Month])),Data[Month])
Month Value = [YTD] - maxx(FILTER(Data, Data[Month]< EARLIER(Data[last Month])),Data[YTD])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
luapdoniv
Resolver II
Resolver II

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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