I need some help calculating the Max Duration Based on Category, in this case a Project ref number.
To explain a little more I have an Actual Start Date Column and End Column that I’m tracking Per Month. I would like the Max duration to calculated for that Project ref, in the pictures case 22 March 2022 - 15 April 2020 = 706 days, if its not the max duration for that Project ref is would be left Blank.
@adam
Variables are actually constants, once you define them their values are fixed, you can’t update the value in any way. That MAXX isn’t doing anything useful, Results that you are getting are MAX values of the table in the filter context modified by ALLEXCEPT but calling variable evaluate outside CALCULATE in a row context in this scenario isn’t useful.