FACT table with link to Date Dimension in star schema fashion.
Date Dimension holds 20 years of dates, linked to fact table by Integer primary and foreign key fields.
Have designated date dimension as 'date table' in model, with transaction date being the 'date field' (And tried without).
I have tried various forms of Max Date or Last Date to get the latest date of a transaction in the fact table, but I always get the last date in the date dimension table
Simple would be: =MAX('Calendar - Transaction Date'[Transaction Date])
Using Max Date in a regular pivot table produces the correct results:
Using Max Date in a PowerPivot produces different results:
Lastly bringing in the maxdate in a powerpivot table removes the filters I have set for the powerpivot report.
Date Dimension holds 20 years of dates, linked to fact table by Integer primary and foreign key fields.
Have designated date dimension as 'date table' in model, with transaction date being the 'date field' (And tried without).
I have tried various forms of Max Date or Last Date to get the latest date of a transaction in the fact table, but I always get the last date in the date dimension table
Simple would be: =MAX('Calendar - Transaction Date'[Transaction Date])
Using Max Date in a regular pivot table produces the correct results:
Using Max Date in a PowerPivot produces different results:
Lastly bringing in the maxdate in a powerpivot table removes the filters I have set for the powerpivot report.