Writing DAX at the correct granularity