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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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: 7
  • 2.PNG
    2.PNG
    89.6 KB · Views: 7
  • 3.PNG
    3.PNG
    93.4 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,213,524
Messages
6,114,117
Members
448,549
Latest member
brianhfield

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