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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
STRUSINIO
Frequent Visitor

Column values multiplying

Hey,
I got single data table like bellow: 
STRUSINIO_0-1683800493289.png

What im trying to do is to get result assigned to ID by sum of multiplication columns Sales by Shares
material no 1 = 100 * 0.25
material no 2 = 0 * 0.50
material no 3 = 200 * 0.25
Sumof this multiplication should be equal to 75 for ID 123,
In my visual while presenting data including material column, all looks fine

STRUSINIO_1-1683801034455.png

but then after taking out Material column my calculated measure is combining the results:

STRUSINIO_3-1683801133271.png

the measure im using:

Result = CALCULATE(Sumx('Table','Table'[Sales]) * SUMX('Table','Table'[Shares]))

Is there any way to filter out the data to get the results aggregated correctly on ID level?
Thanks in advance!

 

 

1 ACCEPTED SOLUTION
Wilson_
Memorable Member
Memorable Member

Hello STRUSINIO,

 

You're using the right function (SUMX) but it looks like your understanding of the functions is incorrect. Hopefully this documentation helps your understanding. Anyway, try the below instead.

Result = SUMX ( 'Table', 'Table'[Sales] * 'Table'[Shares] )

 


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
Wilson_
Memorable Member
Memorable Member

Hello STRUSINIO,

 

You're using the right function (SUMX) but it looks like your understanding of the functions is incorrect. Hopefully this documentation helps your understanding. Anyway, try the below instead.

Result = SUMX ( 'Table', 'Table'[Sales] * 'Table'[Shares] )

 


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.