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
thhmez7
Helper III
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. 

Sumx_total.png

 

Thank you.

7 REPLIES 7
v-easonf-msft
Community Support
Community Support

Hi,  @thhmez7 

Please check if these thread can be helpful.

https://community.powerbi.com/t5/Desktop/Incorrect-Measure-Total/m-p/454679#M210659 

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

PaulDBrown
Community Champion
Community Champion

Try:

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




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






DataVitalizer
Solution Sage
Solution Sage

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

Hi 

do you use SUM of the revenue in VAR C?

It hasn't worked for me with the column.

Sumx_total2.png

@thhmez7 Var rev=Project[Est. Revenue]


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

Sumx_total3.png

No that expression in VAR rev is not allowed 😞

amitchandak
Super User
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 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

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.