Forum Discussion
Anonymous
3 years agoNot applicable
Create a table using latest available value
Hello everyone! I have two tables one is factual and the other is dimensional and I need to create a relationship based on the "Dojo" where the employees worked. In this scenario My dimension (Latest...
- 3 years ago
Hope this helps: However, in your data
Employee ID Latest Dojo Worked Latest Date Available 2233 Mcdojo 29-Jan-23 ------> this is incorrect the latest is 5-Feb-23 1122 Mcppato 12-Feb-23 - 3 years ago
Instead of MAX(), you may use MIN()
Padycosmos
3 years agoSolution Sage
Hope this helps: However, in your data
| Employee ID | Latest Dojo Worked | Latest Date Available |
| 2233 | Mcdojo | 29-Jan-23 ------> this is incorrect the latest is 5-Feb-23 |
| 1122 | Mcppato | 12-Feb-23 |
Anonymous
3 years agoNot applicable
It worked 😄 thanks, how would I do the Opposite? Creating the table with the earliset result found for each employee based on date?
Thanks in advance
- Padycosmos3 years agoSolution Sage
Instead of MAX(), you may use MIN()