I am trying to create a measure that will show how many members our group has gained or lost since our last month.
The data source is a spreadsheet exported from our membership software once a month, with rows for member ID, member status, and a couple of other columns.
I have transformed that data so that each row also contains the date of the report. So, my fact table looks something like this:
10/31/2021 | MemberA_ID | Active
10/31/2021 | MemberB_ID | Active
11/30/2021 | MemberA_ID | Inactive
11/30/2021 | MemberB_ID | Active
11/30/2021 | MemberC_ID | Active
The end visual will be a line graph with the report dates on the X axis and the Y axis showing two measures:
a) the count of how many members are active at the given report date AND were not active at the most previous report date (i.e., gained members)
b) the count of how many members are inactive at the given report date AND were active at the most previous report date (i.e., lost members)
I am struggling with how to create this measure. I think I need to do some manipulation of the filter contexts because the report date is filtered based on the X axis value and I need to look at the previous report date at that same value.
How can I do this?
The data source is a spreadsheet exported from our membership software once a month, with rows for member ID, member status, and a couple of other columns.
I have transformed that data so that each row also contains the date of the report. So, my fact table looks something like this:
10/31/2021 | MemberA_ID | Active
10/31/2021 | MemberB_ID | Active
11/30/2021 | MemberA_ID | Inactive
11/30/2021 | MemberB_ID | Active
11/30/2021 | MemberC_ID | Active
The end visual will be a line graph with the report dates on the X axis and the Y axis showing two measures:
a) the count of how many members are active at the given report date AND were not active at the most previous report date (i.e., gained members)
b) the count of how many members are inactive at the given report date AND were active at the most previous report date (i.e., lost members)
I am struggling with how to create this measure. I think I need to do some manipulation of the filter contexts because the report date is filtered based on the X axis value and I need to look at the previous report date at that same value.
How can I do this?