Forum Discussion
Slowly changing fact table
- 4 years ago
Hi richanthony ,
Not sure exactly what you mean by "what status the record was on any given day", but a fairly basic measure structure for use on SCD's would be something like this:
_noofRecordsAtDate = VAR __cDate = MAX(calendar[date]) RETURN CALCULATE( COUNTROWS(yourSCDTable), __cDate >= yourSCDTable[startDate], __cDate <= yourSCDTable[endDate] )It's really just a case of changing the required calculation/result within the calculate, and giving the measure a date context from the calendar table.
Pete
Hi richanthony
Can you please share more sample data that include multiple dates? Does this table include only one record or multiple records? What is the status you want to display and how do you want to show the daily trends of it? If the table has data for every day, does every day have a flag with value 1 to mark the status of that day? If every day has a flag value 1, can we take that row's status for that day?
Best Regards,
Community Support Team _ Jing