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
MikeGA
Regular Visitor

Calculated Column in Table Visualization

I'll open with i'm very new to Power BI and am amazed at the amount of information available but I find myself getting beat up by the simple things.

 

I have a report feeding from an Excel file.  One of the visualizations is a summary by product line  with an average cost per line.

Now I need to multiply those 2 columns and cannot figure out how to accomplish what I image to be a very simple act.

My columns for the table are:

Line

# Units (which is counting distince values)

Avg Standard cost

 

I did a mock up in Excel just to have a visual for this question.

 

2024-03-19_17-36-48.jpg

1 ACCEPTED SOLUTION
MikeGA
Regular Visitor

Issue resolved....i had to create a measure instead of a column and it worked .  Thanks to all ..... lots to learn for this beast

View solution in original post

4 REPLIES 4
MikeGA
Regular Visitor

Issue resolved....i had to create a measure instead of a column and it worked .  Thanks to all ..... lots to learn for this beast

MikeGA
Regular Visitor

Wish i could upload the document LOL...but here's a screen shot of my steps and what's happening.  The "math" would have to be done after the filtering i would think.  I did try both suggestions and results are in the included image2024-03-19_20-02-12.jpg

Daniel29195
Super User
Super User

@MikeGA 

use this 

 

sumx( tbl_name  , tbl_name[items] * tbl_name[avg cost] ) 

 

let me know if this helps .

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🙏

PhilipTreacy
Super User
Super User

Hi @MikeGA 

 

You can create a new Calculated Column in PBI with this code

 

 

Total = [Items] * [Avg Cost]

 

 

cc-tot.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.