Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I'm new to PowerBI and would like some advice whether it is possible to determine if a date from table A falls within two dates in table B. Here is an example of the tables:
TABLE A:
STUDENT | ACADEMIC YEAR | COURSE | REGISTRATION START DATE | REGISTRATION END DATE |
S123 | 2017 | C001 | 05/09/2017 | 10/12/2017 |
S123 | 2017 | C002 | 02/11/2017 | 15/12/2017 |
S123 | 2017 | C001 | 13/01/2018 | 30/03/2018 |
S456 | 2017 | C001 | 01/09/2017 | 31/07/2018 |
S789 | 2017 | C001 | 10/09/2017 | 31/07/2018 |
TABLE B:
STUDENT | ACADEMIC YEAR | COURSE | LOGIN DATE | XX ACTIVE REGISTRATION XX |
S123 | 2017 | C001 | 10/09/2017 | YES |
S123 | 2017 | C002 | 05/12/2017 | YES |
S123 | 2017 | C001 | 09/01/2018 | NO |
S456 | 2017 | C001 | 01/09/2017 | NO |
So, I would like XX ACTIVE REGISTRATION XX to be determined by comparing the login date with and checks whether it falls within REGISTRATION START DATE and REGISTRATION END DATE.
( I would concatenate STUDENT, YEAR and COURSE and loop at table A to check whether login date falls with registration start and end date)
Any advice or potential solution would be much appreciated.
Thanks
Solved! Go to Solution.
Here is an example for your reference.
My initial thoughts on this is that there is nothing that ties the 3rd rows together really in terms of checking if it falls within those particular dates versus, for example, the first row.
Thanks for your prompt response.
One possible logic I was thinking of was for each entry in TABLE-B I would loop at TABLE-A macthing on STUDENT, YEAR and COURSE and then an 'if statement' to check whether TABLE-B Login Date falls with the Regitration Start and End Date of TABLE-A.
However, I can't see that I can apply that logic.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |