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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.