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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Issue with SUMX function

Hi,

I used sumx, hence i supposed to get sum of sales and extended amounts in last coulmn. However, i seeing something else. Can someone help on it. Thanks.

 

RamaKrishna8989_0-1668604890113.png

add measure = sumx(FactInternetSales, FactInternetSales[SalesAmount] + FactInternetSales[ExtendedAmount])
2 ACCEPTED SOLUTIONS
Syndicate_Admin
Administrator
Administrator

Hello!

I see that you are adding the data using FactInternetSales as context, which means that it will go row by row in that table doing the operation you indicated, to see that result modifies the type of summarization that the columns of ImporteVentas and ExtendedAmount have

Sandielly_0-1668607093794.png

View solution in original post

Hello, it is the same as I explain, everything depends on the filter context, when you remove the Sales order number everything is damaged because you removed the context from the matrix and therefore it is adding the data, basically it is adding all the 2.9 and it is adding them. This happens because you are directly using the columns with the measurements without a correct filter context.

If this post is helpful in helping you solve your problem, consider giving the post a thumbs up

and accept it as a solution!

View solution in original post

7 REPLIES 7
serpiva64
Solution Sage
Solution Sage

Hi,

as you can see there is nothing wrong in your measure

serpiva64_0-1668607310833.png

it is only grouping all sales with the same amount.

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

Hey, if my query is correct. can you pls me understand why am i seeing huge values in add measure column, while you are getting the correct 4.58 values in add measure? 

Hello, it is the same as I explain, everything depends on the filter context, when you remove the Sales order number everything is damaged because you removed the context from the matrix and therefore it is adding the data, basically it is adding all the 2.9 and it is adding them. This happens because you are directly using the columns with the measurements without a correct filter context.

If this post is helpful in helping you solve your problem, consider giving the post a thumbs up

and accept it as a solution!

Hi, Can you also help me understand in detailed steps, at least for the first row, how is it calculated as 14614??

Calculated correctly after adding salesordernumber column to the table. Thank you 

Syndicate_Admin
Administrator
Administrator

Hello!

I see that you are adding the data using FactInternetSales as context, which means that it will go row by row in that table doing the operation you indicated, to see that result modifies the type of summarization that the columns of ImporteVentas and ExtendedAmount have

Sandielly_0-1668607093794.png

Hey,

I already selected don't summarize only. yet i am still seeing incorrect values.

 

RamaKrishna8989_0-1668614943506.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors