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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Hap76
Frequent Visitor

Power Pivot DAX measure to operate on row data

I have a Warehouse table which holds current values of BOM-component stockcodes. I have the Warehouse values (eg On Hand) as rows on the pivot (so that they can be nested under their respective parents from the sales data), but I need to operate on them as values, and I'm struggling to build a measure for the On Hand qty. I can't seem to get the filtering and/or relationships (and/or crossfiltering) right. I thought I could wrap a Calculate around the sum of On Hand inside Calculate, and that that would force the current row context into a filter context. But the result (the [On Hand Qty BAD] measure under Warehouse) lacks filter and returns everything. (I'm trying to avoid calculated columns on the source data.)

 

There are too many tables and relationships to paste everything in here but I have the xlsx file shared here: https://1drv.ms/x/s!Aq0xcVjtciftgVsCQGSUGlhliDQx?e=fINfiK

 

Hoping someone might explain how this could be handled?

1 REPLY 1
Anonymous
Not applicable

Why not check out these materials?

How to handle BOM in power bi? - Google Search

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.