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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.