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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ScarlettBebb
Frequent Visitor

Creating an Average Column/Measure Combining multiple Specific rows over two tables

Hello all 🙂 

 

I'm hoping someone can help me with this problem. I have the dataset in the screenshot below. I need to create a column (or measure) it doesn't matter which one as long as I can plot it in a visual later on. I want to display Average Signal of a particular group which would be W1-W96

ScarlettBebb_0-1674482728304.png

And then further in another Table I have what looks like this (real one not shown for data privacy sorry I just made up another version in Excel but the real one is in PowerBI) 

ScarlettBebb_2-1674483145933.png

So as the end result I would need the average signal of a product (for example HHHHGGGG Lot 1 for QA1 in group W1-W96)

 

Thank you so much in advance if you give this a go. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @ScarlettBebb,

You can write a measure formula to use these fields as group to filter on the aggregate calculations:

formula =
CALCULATE (
    AVERAGE ( Table1[Lot] ),
    ALLSELECTED ( Table1 ),
    VALUES ( Table1[Part Number] ),
    VALUES ( Table2[Well Position] ),
    VALUES ( Table1[QA Sample Point] )
)

If the above not help, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @ScarlettBebb,

You can write a measure formula to use these fields as group to filter on the aggregate calculations:

formula =
CALCULATE (
    AVERAGE ( Table1[Lot] ),
    ALLSELECTED ( Table1 ),
    VALUES ( Table1[Part Number] ),
    VALUES ( Table2[Well Position] ),
    VALUES ( Table1[QA Sample Point] )
)

If the above not help, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.