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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
FerdinandP
Frequent Visitor

Level of Detail Lost

Hello Everyone

 

Wondering if you can assist with a visual and a calculation.

 

I have a production report at a granular level of detail showing:

  • Product Group Name (pgd_prod_grp_name)
  • Item Description (item_code_description)
  • Transaction Reference (stk_trans_ref1)
  • Tonnes Produced

FerdinandP_0-1670287790183.png

 

In addition I have a table and chart showing summary of production by Product Group.

FerdinandP_1-1670287821973.png

 

My issue is that the total of the summarized table does not agree to the detail table.

 

I realize it has something to do with the fact that the summary table does not contain the Item codes and transaction references, so I tried a SUMX calculation to tell the visual the level of detail it should use. The calculation I've made gives an error: "The column 'stock_dim[bi_stkdim_pack_weight]' either doesn't exist or doesn't have a relationship to any table available in the current context."

 

It is not clear to me why this error is shown because my data model has a relationship between all the tables (including stock_dim)

 

The report is saved to DropBox here:

 https://www.dropbox.com/s/or1ox1rfmyhpqnu/PRODUCTION_REPORT.pbix?dl=0 

 

Thanks in advance for the assistance

1 REPLY 1
v-xiaosun-msft
Community Support
Community Support

Hi @FerdinandP ,

 

I'm sorry that I can't open your link due to the access limitation.

I suggest that you can check whether the columns you use in two tables are from the same table.

Or you can try to upload your pbix file again in order that we can help you further more. You can reference the following link to upload your file. Thank you!

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.