New to DAX and trying to shift as many calculations/steps that I had been doing in Power Query to DAX and the Data Model in order to leverage relationships and reduce the refresh time. I am trying to create a DAX calc to recreate the Pivot Table view shown below, specifically the "Deltas" scenario. Currently, I have a separate power query that takes the data with Scenario 1/2s, unpivots, adds a "Delta" calculated column, repivots, creates a third scenario called "Deltas", then joins it back to the raw data table which I pivot off of. This adds a lot of time to the refresh when done over several metrics (units, revenue, GP$ etc etc). I'm wondering if I can use a DAX formula to accomplish this same thing. Below is a simplified view of my data set and a pivot table view of what I'm trying to recreate. I asked for help on the Power BI forums but no luck.
Pivot Table View
| Customer |
Product |
Scenario |
Quarter |
Units |
Price |
| Customer A |
Product A |
Scenario 1 |
CQ1-23 |
55 |
$49.00 |
| Customer B |
Product A |
Scenario 1 |
CQ1-23 |
81 |
$77.00 |
| Customer C |
Product B |
Scenario 1 |
CQ1-23 |
23 |
$98.00 |
| Customer A |
Product A |
Scenario 1 |
CQ2-23 |
98 |
$62.00 |
| Customer B |
Product A |
Scenario 1 |
CQ2-23 |
67 |
$61.00 |
| Customer C |
Product B |
Scenario 1 |
CQ2-23 |
78 |
$8.00 |
| Customer A |
Product A |
Scenario 2 |
CQ1-23 |
38 |
$45.00 |
| Customer B |
Product A |
Scenario 2 |
CQ1-23 |
73 |
$79.00 |
| Customer C |
Product B |
Scenario 2 |
CQ1-23 |
27 |
$22.00 |
| Customer A |
Product A |
Scenario 2 |
CQ2-23 |
79 |
$90.00 |
| Customer B |
Product A |
Scenario 2 |
CQ2-23 |
39 |
$74.00 |
| Customer C |
Product B |
Scenario 2 |
CQ2-23 |
5 |
$79.00 |