Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
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
Hi @Anonymous ,
Does that meet your requirement?
2019 YTD = AVERAGE(Intensity[Normalization Unit])/CALCULATE(AVERAGE(Intensity[Total Material Generated]),ALLSELECTED(Intensity))
@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/
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!