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
Anonymous
Not applicable

Create summed table based on values from other rows

Hi guys,

 

I have the following "master" table:

pmeyp_0-1660837983676.png

 

Linked to a "slave" table:

pmeyp_2-1660838293731.pngpmeyp_3-1660838659973.pngpmeyp_1-1660838216810.png

 

(ID in Sub Table is independent from Master Table, while "Secondary ID" is assigned by Master Table as a relationship)

 

Some production lines have 2 sides, "a" and "b".

 

I would like to:

  1. create a calculated table where:
    1. Line X's weight, from both sides a and b, appear as one "summarized" averaged value.
      1. Example 1: For SECONDARY ID #1 above: Line 2a and 2b the "summarized averaged" value for Weight = 0.26 (since 0.26+0.26/2 = 0.26).
      2. Example 2: Line 3a and 3b "summarized average value" would be = 2.8205 (since 2.808 + 2.833 = 2.8205)
      3. Etc.
  2. This summarized table would show me also the single production lines (lines with no side a or b, like line 4 above).

 

Any help is highly appreciated!

7 REPLIES 7
lbendlin
Super User
Super User

Not sure why you would need a calculated table for that.  The data model can do the work for you.

 

lbendlin_0-1661196559789.png

see attached

Anonymous
Not applicable

Need a calculated table because I need to use that averaged value for other calculations. For example, I will use that averaged value to multiply times other columns to get percentages, total material consumed, etc.

Table = SUMMARIZECOLUMNS('Main Table'[ID], 'Sub Table 1'[Line],
      "AverageWeight__lbs_ft_", CALCULATE(AVERAGE('Sub Table 1'[Weight (lbs/ft)]))
    )
Anonymous
Not applicable

I tried this, but I am not able to change its contents with filters/slicers.. any other suggestions ?

A calculated table is immutable. It cannot be influenced by filters/slicers.

 

 

lbendlin
Super User
Super User

Please provide the sample data that in usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Anonymous
Not applicable

Hi sorry about that, please see link below:

DEPDATA1101.0.accdb

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.