To achieve the results based on the condition that you’ve provided. Firstly, you’ll be required to create a dimension table i.e., “Cost Center and Segment” since that is the common link between the two. Once that table is created, join it with the two tables. Below is the screenshot of the table as well as of the data model provided for the reference -
Now, just create these simple measures and you’ll get the desired results. Below are the measures alongwith the screenshot of the final results provided for the reference -
Total Actual Sales =
SUM( Financials[Gross Sales] )
Total Plan Sales =
SUM( Plan[Total Sales] )
Variance =
[Total Actual Sales] - [Total Plan Sales]