Forum Discussion
Need help
- 1 year ago
Reactivate the relationship between your Date table and the fact table on the date fields. This is necessary for the SAMEPERIODLASTYEAR or DATEADD functions to work properly.
Count_recordID = COUNT('FactTable'[recordID])PreviousYearCount =
CALCULATE(
[Count_recordID],
SAMEPERIODLASTYEAR('Date_table'[date])
)Place Year from the Date table in the Rows of a table visual.
Add Count_recordID and PreviousYearCount measures to Values.If this helped, a Kudos π or Solution mark would be great!π
Cheers,
Kedar Pande
Connect on LinkedIn
Reactivate the relationship between your Date table and the fact table on the date fields. This is necessary for the SAMEPERIODLASTYEAR or DATEADD functions to work properly.
Count_recordID = COUNT('FactTable'[recordID])
PreviousYearCount =
CALCULATE(
[Count_recordID],
SAMEPERIODLASTYEAR('Date_table'[date])
)
Place Year from the Date table in the Rows of a table visual.
Add Count_recordID and PreviousYearCount measures to Values.
If this helped, a Kudos π or Solution mark would be great!π
Cheers,
Kedar Pande
Connect on LinkedIn