Combining two date cells with measures

Matt Cass

New Member
Joined
Feb 8, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Web
Hi,

I'm struggling to get this to work, any solutions would be much appreciated.

- data shows forecasted and actual sales for the year.
- data has two date cells, 'projected close date' and 'actual close date'. i.e. when we think it's going to land and when it actually landed.
- want to create a pivot chart and pivot table with one common date field. i.e. to show forecast and actual figures per month and overlay forecast and actual over each other on a chart.
- I've been trying to get measures to work with a USERELATIONSHIP but not sure on correct formula

Excel Formula:
= CALCULATE (

    data[Projected closing date],

    USERELATIONSHIP ( data[Actual closing date], 'Calendar'[Date] )

)

Thanks!

relationships.PNG

measures2.PNG
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

So I've tried a multitude of alternatives.

The closest I got to a solution was using power query and unpivoting the date fields which worked but then the problem was I was getting duplicate values as it was not differentiating the forecast and actual values, so I was getting duplicate values.

I've now simplified and tried to build using different pivot tables but I can't find a way to merge these two charts. Can anyone help?

My end goal with this is to have the forecast sale, actual sale, forecasted land date and actual land date to be overlapped on one chart, so I can see the forecasted sales and actual sales over the year.

Once I've got that working I'm then going to create a further chart that splits the forecasted value between different stages of the 'pipeline stage' cell.

I can upload the file if that's allowed/possible?

Many thanks

Matt
 

Attachments

  • 1.PNG
    1.PNG
    19.4 KB · Views: 12
  • 2.PNG
    2.PNG
    89.6 KB · Views: 12
  • 3.PNG
    3.PNG
    93.4 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top