Forum Discussion
Comparing Dates in two Fact Tables
Hi there,
Wondering if anyone can help.
My structure is thus: Students table, one to many relationship to Registration table and Induction table.
Scenario is I have to calculate the % of students I have in my Students Table, who have both a Registration Record in the Registration Table and an Induction record in the Induction Table (where the 'Induction Type' field has a specific value of 'Event'), and where the Date of Registration (Registration Table) is before or equal to the Date of Induction (Induction Table).
How can I do this simply? I have done this with a massive workaround because I am not the best with Dax.
Jihwan_Kim can you help?
7 Replies
- Jihwan_KimSuper User
Hi, Gingerjeans88
Please share your sample pbix file's link here, together with how your desired outcome looks like. Then I can try to look into it to come up with an accurate solution.
Thank you.
- Gingerjeans88Helper IV
Hey Jihwan_Kim - thanks so much for replying! Getting quite desperate so really appreciate the help.
I haven't had the time to create a PBIX but I have mocked up the data in excel, showing how the induction and registration records are linked to Students via Student ID.
The dataset is here -
So grateful for any help!
- Ashish_MathurSuper User
Hi,
Please also show the expected result there.