Forum Discussion
Creating Revenue Measure using 2 Fact Tables (Different Granularities)
Hi lbendlin,
See attached a link to a mock dataset which contains a few examples of data.
Mock Model.pbix - Google Drive
In essence you'll see in Opportunity 2 & 3 that the values return the incorrect number as its contains only the sum of the record which is Won, where infact it needs to include the sum of all records for that line up until the max date.
Another bit of context here, We also need to see the latest status is as at the point in time we're looking at, i.e. an op line may be Won, then lost, if the op is lost we need to exclude from the output. The work around I've done for this is below, however, its extremely slow (visual times out after a few periods are added):
You seem to have bent the opportunity field history object into a shape that it is not designed for. Use a proper data model, with Opportunity Object, Opportunity Product Object, and Calendar dimensions. Then decide if you need daily or lowr granularity for your field changes.
I would challenge the Stage Change field on the Opportunity product - that's not how SFDC works.
- Anonymous2 years agoNot applicable
We've gone down this approach prodominatly because there needs to be an "As At" view for the business on both granularities. i.e. what was the record as at 1st of december 2023 vs current view.
how come on the challenge?
- lbendlin2 years agoSuper User
You can't have partially won opportunities.
The as of reports are done differently, via the event list. Possible in Power BI but better done upstream.
- Anonymous2 years agoNot applicable
No you can't but you can have instances where we've won some parts of an opportunity but not others, which is where the product stage comes into play.
Based on what you've seen of the mock model do you think its not possible to achieve the orignal requirements?