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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PBrainNWH
Helper II
Helper II

Filter line item based on text value in another table

I have a value entry table (Value Entry) with a list of line items from sales orders (the below is one sales order):
Unit of Measure 1.jpg

I need a specific Qty_per Unit of Measure from another table (Item UoM) based on the Item No. and Variant:

 

Unit of Measure 2.jpg

 

The 296.13 is the sum total of all Qty_per Unit of Measure values for that Item No. (FD-0001) in the Item UoM table. I only want the value that corresponds to the specific variant (ex. first line on Value Entry is 40/3/2OZ). So on Value Entry table for the Item No. FD-0001, instead of 296.13, I want 8.

Is this possible? If so, I need help with the measure syntax.

 

1 ACCEPTED SOLUTION
PBrainNWH
Helper II
Helper II

CALCULATE(AVERAGE('Item Unit of Measure'[Qty_ per Unit of Measure]),
FILTER('Item Unit of Measure','Item Unit of Measure'[Item No_] = 'Value Entry'[Item No_] && 'Item Unit of Measure'[Code] = 'Value Entry'[Variant Code]))

View solution in original post

1 REPLY 1
PBrainNWH
Helper II
Helper II

CALCULATE(AVERAGE('Item Unit of Measure'[Qty_ per Unit of Measure]),
FILTER('Item Unit of Measure','Item Unit of Measure'[Item No_] = 'Value Entry'[Item No_] && 'Item Unit of Measure'[Code] = 'Value Entry'[Variant Code]))

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors