cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kryssy
Helper II
Helper II

Total Column not summing

Hello,

I am trying to do a simple formula = Total * Rate. However, the total in the row does not work. Does anyone know how to change the formula so it totals properly, please?

I understand its using the total percentage to multiple the total total, but I am not sure how to change it to get the total in the row. Help please

 

Here is the formula I am using: 

Test =
    IF(
        HASONEVALUE(Dates[Date]),
        [Rate] * [Total] ,
            SUMX(Dates,
             [Rate] * [Total]
             ))

 

Kryssy_2-1673839553553.png

 

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Kryssy 
Please try

Test =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Name],
        Dates[Date]
    ),
    [Rate] * [Total]
)

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Kryssy 
Please try

Test =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Name],
        Dates[Date]
    ),
    [Rate] * [Total]
)

Thank you very much!!!!!

AlexisOlson
Super User
Super User

You can iterate over companies instead of dates and/or you could fix your [Rate] measure. Rates aren't generally additive, so the 6.00% in the total row doesn't make sense.

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!