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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Matrix Values Incorrect - Would this be an issue in the data model?

Capture.PNGSo in this matrix above, the first 3 values (underlined in blue) are calculated correctly for the UIDs under project name (the hierarchy is project name, project number, then purchase order number... all from different tables). The problem is the calculations for the values underlined in red.... As you can see from where I started highlighting, the values are all calculating as identical for all of the purchase order numbers. This is incorrect. For example, the purchase order 24672 is the only one that should have a value of $4,000 under "Cost-Posted-Accrual-Amount@1"... the others should be blank. That value is pulled from a different table, connected through an intermediate summary table between them (where the project number 102003 comes from, under the project name: Construction Management Funding).

 

Could someone point me in the right direction of where to look to fix this issue? I'll include another screenshot of my data model below. For the Hiearachy for the Project name (the matrix rows), the Project Name comes from the leftmost table, the Project Number comes from the CAPEX Metrics table, the Purchase Order Number is coming from the CAPEX_OpenPOs table, and the other values are coming from the other CAPEX tables. The only values that are correct in the matrix are those that come from the CAPEX_OpenPOs table, which tells me there's definitely something wrong with how I have this set up.

Capture.PNG

2 REPLIES 2
Greg_Deckler
Super User
Super User

@Anonymous it's tough to tell from the information provided but nine times out of ten what you are experiencing is due to a missing relationship path between two tables. So if Projects is your project and you get the PO # from CAPEX Payments, then CAPEX Payments needs a relationship path to the other CAPEX tables that contain the numbers for that PO # and I believe that is what is missing.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks Greg, this solved it!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.