Forum Discussion
Row Context in Calculated Column
Hello,
I have a data model that looks like this:
Registrations contains a list of people, and the date they registered.
I want to be able to count Registrations filtering by the Team they relate to. The team is stored in 'pre_project' table and currently connects to the 'Merged Activity Table' through a relationship via the [ProjectID]. There is no such [ProjectID] in 'Registrations' so I need to add one. I can infer which Project did the registration by looking at the 'Merged Activity Table' and finding the first project each person engaged with, and using that [ProjectID].
So I need to add the [ProjectID] as a new column in the 'Registrations' table so I can create the relationship to the 'Pre_project' table, and then use the Team filter.
I'm having trouble creating the calulated column in Registrations, I think which relates to a mix of row context and relationships.
I have however created a measure which when added to a visualisation table with Contact[Contact ID] correctly returns the first project engaged with. The measure is:
Any thoughts, I'm clearly getting it wrong somewhere, but just can't work it out - its been puzzling me for ages.
Many thanks,
Adam
12 Replies
- lbendlinSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? 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- lbendlinSuper User
I want to be able to count Registrations filtering by the Team they relate to.According to your data model registrations and teams are unrelated. Contact IDs can be members of multiple projects.