cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
adamorsteve Frequent Visitor
Frequent Visitor

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

Accepted Solutions
adamorsteve Frequent Visitor
Frequent Visitor

Re: Calculated column incorrect calculation

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 :-)

9 REPLIES 9
vanessafvg Super Contributor
Super Contributor

Re: Calculated column incorrect calculation

@adamorsteve what table is the report filter sitting in? 


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
adamorsteve Frequent Visitor
Frequent Visitor

Re: Calculated column incorrect calculation

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

vanessafvg Super Contributor
Super Contributor

Re: Calculated column incorrect calculation

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


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
adamorsteve Frequent Visitor
Frequent Visitor

Re: Calculated column incorrect calculation

Capture1.PNG

 

 

vanessafvg Super Contributor
Super Contributor

Re: Calculated column incorrect calculation

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


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
adamorsteve Frequent Visitor
Frequent Visitor

Re: Calculated column incorrect calculation

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

vanessafvg Super Contributor
Super Contributor

Re: Calculated column incorrect calculation

@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


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
adamorsteve Frequent Visitor
Frequent Visitor

Re: Calculated column incorrect calculation

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 :-)

v-ljerr-msft Super Contributor
Super Contributor

Re: Calculated column incorrect calculation

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
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 6 members 1,716 guests
Please welcome our newest community members: