cancel
Showing results for
Did you mean:
Helper III

## Total of new measure not correct

Hi

I created a new measure for Est. Revenue which works fine in the rows, but the Total shows the incorrect value.

In this case I tried with SUMX, but it doesn't work either.

Thank you.

7 REPLIES 7
Community Support

Hi,  @thhmez7

Try to wrap a SUMMARIZE function within the SUMX function.

If it doesn't work ,please share a sample file for further research.

Best Regards,
Community Support Team _ Eason

Super User

Try:

``````With totals =
SUMX ( VALUES ( Account[Industry] ), [Est. Revenue] )
``````

In doing so, you are also helping me. Thank you!

Proud to be a Super User!

Post Prodigy

Hi @thhmez7

I created a column instead of a measure with DAX code below, then I added this column to the chart and total was 51451

`VAR D=CALCULATE(SUM(Table[Revenue]),ALL(Table),Table[Industry]="D")VAR C=Table[Revenue]Return IF(Table[Industry]<>"D",D+C,0)`

Did it work ?  👌  Mark it as a solution to help spreading knowledge  👍  A kudos would be appreciated

Helper III

Hi

do you use SUM of the revenue in VAR C?

It hasn't worked for me with the column.

Post Prodigy

@thhmez7 Var rev=Project[Est. Revenue]

Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated

Helper III

No that expression in VAR rev is not allowed 😞

Super User

@thhmez7 , if D selected is not selected slicer you can create you measure like

calculate(sum(project[est revenue]), filter(account,account[industry] <> "D")) +0

Learn Power BI - Full Course with Dec-2022, with new DAX functions like Window, Index, Offset !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Formatted Profit and Loss Statement with empty lines

Announcements

#### 2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

#### Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

#### 2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors