Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
My current data structure has a relationship where our Client Database which holds key information (name, dob etc) is the central node and various other tables of data relate to this via a "ClientRecord" field to allow for data to be related cross tables.
One of these related tables is our "Referral" information and is that particular entry point into our system, note that each client could have multiple referrals if they engage with us multiple times so its important that I collect this data against their referal, not their client record.
I have a second table that holds assessment results, this is related to the main client database with the same ClientRecord column. What I am wanting to achieve is find the first assessment for each referral which will lookup based upon the ClientRecord value and then the first record after the creation of that referral. I am then wanting to do the same with the Last record after the referral which should show the score for their First Assessment and then their Last Assessment since their referral.
Another example where I am wanting to do the same thing pretty much is with our recorded activities, I want to retrieve the first activity creation date after the individual referral creation date. The aim is to be able to calculate the amount of time between referral and first contact for each referral record.
I am not sure if I am explaining this properly but I have been trying to sort this for a while and made no progress at all. Any help would be appreciated.
Edit - My latest attempt which just loads forever and never does anything: = Table.AddColumn(#"Renamed Columns", "Custom", (w) => Table.SelectRows(#"EDE-Q 6 0 Form Responses", (x) => x[ClientRecord] = w[ClientRecord] and x[Created] >= w[Created]))
Solved! Go to Solution.
Update- I believe I have managed to sort the issue with the below DAX query:
Update- I believe I have managed to sort the issue with the below DAX query:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
6 | |
6 |