Forum Discussion
DAX measure to replace large calculated table
BBConsultancy Create a measure to calculate the number of contact persons per status on a given date:
ContactPersonsPerStatus =
VAR SelectedDate = MAX('Calendar'[Date])
RETURN
CALCULATE(
COUNTROWS(ContactpersonHistory),
FILTER(
ContactpersonHistory,
ContactpersonHistory[CreatedDate] <= SelectedDate &&
(ISBLANK(ContactpersonHistory[EndDate]) || ContactpersonHistory[EndDate] >= SelectedDate)
)
)
Create a measure to calculate the number of contact persons per status over time:
DAX
ContactPersonsPerStatusOverTime =
CALCULATE(
[ContactPersonsPerStatus],
DATESBETWEEN(
'Calendar'[Date],
MIN('Calendar'[Date]),
MAX('Calendar'[Date])
)
)
- BBConsultancy1 year ago
Helper I
Thanks for the fast reply. Unfortunately it does not work.
Left is your solution, and right is the expected result. It looks like left isn't accumulating over time.