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
Anonymous
Not applicable

How to calculate YTD for average Values

66.pngHi 

I need YTD measure for the below calculation.

(The average of the  sum of Total Material Generated / The average of  sum of Normalization Unit) .i  created the below measure

 

2019 YTD =AVERAGE('Intensity '[Total Material Generated])/AVERAGE('Intensity '[Normalization Unit])),YEAR(Intensity '[Year])=2019. but it doesnt help.
 
3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does that meet your requirement?

2019 YTD = AVERAGE(Intensity[Normalization Unit])/CALCULATE(AVERAGE(Intensity[Total Material Generated]),ALLSELECTED(Intensity))

Capture.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
amitchandak
Super User
Super User

@Anonymous 

For YTD, try using time intelligence with Date calendar

Refer Example

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(('Date'[Date]),"12/31"))
This Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD((ENDOFYEAR('Date'[Date])),"12/31"))

Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Last YTD complete Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
Last to last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-2,Year),"12/31"))

 To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

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
Anonymous
Not applicable

Amit,

 

Problem is the averege calculation... i hve to calcuate the averege values divide by average value on the particular year.

example.. i used date filter for 2019

.then i calculated the sum of  total material /count  = avrge value1...

and sum of normal unit/count  for avege Value 2......

then i divided avrge value1 and averge value 2.

 

thanks

kavitha

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