Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I want to take my YTD monthly totals and divide by the number of months in the YTD monthly total and multiply by 12. My sales are:
Month Sales Annualized Total Jan $1,000 $12,000 Feb $2,000 $18,000 (YTD Total($3,000) / 2 months) = $1,500 * 12 = $18,000 Mar $1,000 $16,000 (YTD Total($4,000) / 3 months) = $1,333 * 12 = $16,000
Anyone know the correct DAX function for this?
Solved! Go to Solution.
I figured it out and want to post it here in case others find this post by searching for annualized totals.
Create measure: Total Sales = SUM(SalesTable(Sales))
Create measure: YTD Sales = TOTALYTD( [Total Sales], Dates[Date] )
Create measure: Monthly Avg Sales = AVERAGEX( VALUES(Dates[Month] ), [Total Sales] )
Create measure: YTD Monthly Avg = CALCULATE( [Monthly Avg Revenue] , FILTER( ALL(Dates) , Dates[Month] <= MAX( Dates[Month] ) && Dates[Year] = MAX(Dates[Year])))
Finally, create measure: Sales Annualized = [YTD Monthly Avg] * 12
HI,
Can someone explain this to me? I got lost towards he end in the YTD Monthly Avg calculation. I want to calculate the annualized total for the current year from only the latest month in the data.
I figured it out and want to post it here in case others find this post by searching for annualized totals.
Create measure: Total Sales = SUM(SalesTable(Sales))
Create measure: YTD Sales = TOTALYTD( [Total Sales], Dates[Date] )
Create measure: Monthly Avg Sales = AVERAGEX( VALUES(Dates[Month] ), [Total Sales] )
Create measure: YTD Monthly Avg = CALCULATE( [Monthly Avg Revenue] , FILTER( ALL(Dates) , Dates[Month] <= MAX( Dates[Month] ) && Dates[Year] = MAX(Dates[Year])))
Finally, create measure: Sales Annualized = [YTD Monthly Avg] * 12
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |