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

Don'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.

Reply

Grand Total on Annualized Value

Hey Everyone, 

 

I could use some help with the total column on an annulized value. Here is my data: 

DepartmentValueMonthCountAnnualized Value

A

40,0001240,000
B30,0001230,000
C5,600106,720
D4,00086,000
Incorrect Total79,6004222,743
Correct Total79,6004282,720

 

You will see that I've added two Total lines. One that is incorrect and this is what my current dax is returning. I need my dax to return the "Correct Total" line. Here is my current dax:

  • _Value = SUM('Table'[Value])
  • _MonthCount = SUM('Table'[MonthCount])
  • _Annualized_Value = DIVIDE([_Value],[_MonthCount])*12
 
You will notice that I need the annualized value to sum all the departments rather than apply the same calculation.
 
*Edit: I should have also clarified that this is a sample of my data model. My data model won't return the correct values if I make this a calculated column. Whereas, this sample will return the correct totals if you sum the calculated column. 

Any Ideas? Thank you!
 

 

3 REPLIES 3
gmsamborn
Super User
Super User

Hi @PowerBIUser349 

Does this help as a measure?

AV = 
    SUMX(
        'Table',
        DIVIDE( 'Table'[Value], 'Table'[MonthCount] ) * 12
    )
Ashish_Mathur
Super User
Super User

Hi,

Drag this measure to the visual

Correct annualised value = SUMX(VALUES(Table[Department]),[_annualized_value])

Hope this helps.


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

@PowerBIUser349 ,

You need create a Calculate Column in your table and the use this column in your annualized measure.

marcelsmaglhaes_0-1701913059408.pngmarcelsmaglhaes_1-1701913112990.png

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.