CALENDARAUTO Function for Date Table #513
-
Hi all, The 'Manage Dates' feature is absolutely brilliant. Bravo! I noticed that the minimum and maximum dates are hard-coding every date column in the model. For example:
Is there a simplified version that wouldn't require manual updates (or refresh via Bravo)... effectively the equivalent of MIN(CALENDARAUTO()) without adding another table that is simply a list of all dates? The only way I can see is I would like to avoid having the excess data but equally, that is a better compromise than the maintenance of the code if any new tables are added. Thanks everyone for your advice. Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can, but there are two issues:
If this is what you need, of course you can either customize the template or modify the resulting calculated table, but we are not going to modify the standard template for that because it would create issues described in 2 (original version of the template used CALCULATEAUTO, indeed). |
Beta Was this translation helpful? Give feedback.
-
You cannot reference columns in table variables like that. Using MINX over the variable should work
|
Beta Was this translation helpful? Give feedback.
You can, but there are two issues:
If this is what you need, of course you can either customize the template or modify the resulting calculated table, but we are not going to modify the standard template for that because it would create issues described in 2 (original version of the template used CALCULATEAUTO, indeed).