Forum Discussion
Net Member Count measure help, please!
Goal: Generate a measure with Net Member Count by date. I need to provide net member count by month for the last three years.
Relevant tables:
- Members: This contains one row per member for every year they are a member. If a member joined in 2021 and is still a meber in 2024, they have four rows (one for year year). Columns include MemberID, Join Date, and Year.
- Date Table: Columns include (among others), Date and Year.
Relationships:
- 'Date Table'[Year] - 'Members'[Year] (Many to many, inactive)
- 'Date Table'[Date] - 'Members'[Join Date] (one to many, inactive)
Thought process: I've decided to break this measure into two parts and sum the results.
- Members who joined this year
- Members who are members during the year but joined in a previous year
My YTD New Members measure:
Members who joined before current year =
SUMMARIZE('Members',
'Members'[Year],
"Mem Count",
CALCULATE(
DISTINCTCOUNT('Members'[MemberID]),
YEAR('Members'[Join Date]) < 'Members'[Year]
)
)
2 Replies
- danextianSuper User
Hi DanaElaine
Please post a workable sample data (not an image), your expected result from that and the reasoning behind. You may post a link to an Excel file or a sanitized copy of your pbix stored in the cloud. https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- DanaElaineFrequent Visitor
danextian , thanks. Here's a sample of sanitized data: Sanitized Data.xlsx
I included three sheets: A selection of sanitized data with the relavent columns, my expected results, and a third sheet I called "Intermediary Steps" where I attempted to illustrate the steps I've taken so far.
Thanks again!