Forum Discussion
Creating Revenue Measure using 2 Fact Tables (Different Granularities)
Not sure what you need a bridge table for?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
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):
- lbendlin2 years agoSuper User
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.