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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
nawt
New Member

Generating Data Model Table Contents Power Pivot

I am a Power Pivot beginner and I created the following data model: Example Data Model

Contained in the following Excel: Example excel file

The tables productParts, productList and productProduction contain data. Now I am trying to create the partProduction table that contains for each weeknumber the production amount. The weekly part production amount equals the part product percentage (from productParts) times the corresponding weekly product production from table product Production. I tried a few DAX functions for generating the columns in partProduction but I cannot get it to work. Any ideas on how to approach this problem?

3 REPLIES 3
Anonymous
Not applicable

Hi @nawt,

 

If you switch the cross filter direction to "both", you can simply use related function to find out the related "part name".

 

Sample:

 

Part production= SelectColumns(AddColumns(Productproduction,"Part Name",Related(productparts[Part Name])),"Part Name",[Part Name],"Week Number",[Week Number],"Production Amount",[Production Amount])

 

 

In addition, you can also use lookupvalue function to find out the related "part name", then use the new column and original table to create the part production table.

 

Calculate column:

Part Name= Lookupvalue(productParts[Part Name],productParts[Product Name],productProduction[Product Name])

 

 

Regards,

Xiaoxin Sheng

Since I need to do post processing in excel I am using the excel power pivot instead of BI. It seems that power pivot does not allow the cross filter direction to be set to both.

Anonymous
Not applicable

Hi @nawt,

 

Since you mentioned your issue are more related to use dax in excel pivot table ,perhaps you can post this requirement to pivot forum for better support.

 

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.