Forum Discussion
Projecting Year by Year
Sure, I think you can try something like this for the MaxYear
=calculate(max(Date[YearIntColumn]), ALLEXCEPT(Fact, Fact[Group]))
The calculate will propagate the relationship in the opposite direction.
Thats what I tried but it keeps on spitting out the same value for all the results (the maximum number in the dimension table).
Edit, resolved that issue by adding a numeric year column to the fact table
- SqlJason10 years agoMemorable Member
You can create a new calculated column iin your fact table, which brings in the integer field from the Date table to the fact.
=RELATED(Date[YearIntColumn])
- SqlJason10 years agoMemorable Member
Or you can use this formula
MaxYear:=CALCULATE(MAX('Date'[YearInt]), CALCULATETABLE('Fact',ALL('Date'[Year])))
I just tested this formula in mine, and it works from what I understood of your requirements.