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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.