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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
adamorsteve
New Member

Calculated column incorrect calculation

Well I am confused!

 

I have 2 tables, there is a relationship between Project IDs so no problem showing graphics with data between both tables. However I am trying to add Actual Cost from one table to Remaining Cost from another table and the answer it gives me is wrong, am I missing something here? (calculated column is "AFC"

 

 

Capture.PNG

 

 

 I have a report level filter where I choose the project and it updates all the table just fine, but the AFC value in here isnt right?

 

Any help really appreciated I am new to DAX 🙂

 

1 ACCEPTED SOLUTION

Just got to the bottom of it, I changed it to a measure rather than a calculated column and moved the measure to a different table, not sure how it fixed things but it did! Need to spend a little more time learning how these things work!

 

Thank you for your help it got me thinking about things more from your questions and helped to get the answer 🙂

View solution in original post

9 REPLIES 9
vanessafvg
Super User
Super User

@adamorsteve what table is the report filter sitting in? 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi

 

So I use a slicer on "Project Name" which filters everything in the report at once, "Project Name" is in a third table called "PROJECTS", this projects table shares the same relationship "Project Ref" as the other tables so everything else filters ok it seems

 

Each visualization has its own Visual level filters which are just the ones automatically applied when I add a field to the visualization

@adamorsteve can  you post a screenshot of your relationship view?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Capture1.PNG

 

 

@adamorsteve and what happens if you change the relationship between project and sap to bidirectional?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Nothing. It is set as one-to-many and both, because there will be multiple SAP actual cost values per project ref

@adamorsteve  its hard to see the problem without the data

 

can you post an example of one project ref with all the associated measures you are using for the one you originally posted?

 

also when you say the answer is wrong, what should it be?  if you are able to post the pbix that would probably be the easiest





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Just got to the bottom of it, I changed it to a measure rather than a calculated column and moved the measure to a different table, not sure how it fixed things but it did! Need to spend a little more time learning how these things work!

 

Thank you for your help it got me thinking about things more from your questions and helped to get the answer 🙂

Hi @adamorsteve,

 

Great to hear the problem got resolved! Could you accept your reply above as solution to close this thread? Smiley Happy

 

Regards

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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