I have two companies in the same fact table, which have intercompany sales.
To eliminate the IC margin in my report, I would like to replace the COGS value from the company selling to the end customer (Co.1) with the COGS value from the supplying company (Co.2).
The SO Number is the same for the sale from Co.2 => Co.1 => End customer
Probably not best practise, but I created a concatenated column using the product key, sales quantity and SO number so there is a relationship for the SKU sale in each company.
As I only want the sales numbers from Company 1, I have a slicer on the Company name.
I am trying to work out the DAX calculation to do this.
IC COGS = VAR Co2COGs =calculate( [COGS],
filter (ALL(sales), Sales[Company Key]=2))
And then can I create a Table for only Company 2,
and then use RELATED and Concate column to return Company 2 Cogs?
The desired end result below, and PBIX file attached.
Thanks in advance for your help, any suggestions or perhaps using āāConcatāā in the DAX to create the Concat column would be greatly appreciated!
Got two options for you to consider.
The most straight forward one is instead of doing it virtually, do a Self Merge on Sales, to retrieve the IC GOCS.
Itās great to know that you are making progress with your query @juju.
Please donāt forget if your question has been answered within the forum it is important to mark your thread as āsolvedā.
We request you to kindly take time to answer the Enterprise DNA Forum User Experience Survey, We hope youāll give your insights on how we can further improve the Support forum. Thanks!
Hello @juju, just following up if the response from @Melissa help you solve your inquiry?
Weāve noticed that no response has been received from you since a few days ago. In case there wonāt be any activity on it in the next few days, weāll be tagging this post as Solved.