- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Find Donor IDs who contributed this year and last year
Problem Statement: I want to determine how many of the donors that have contributed in the current selected year ( slicer ) also contributed in the prior year. E.G., if I have 50 unique donor IDs that have contributed in the current year, how many of those IDs also contributed in the prior year where the amount must be greater than $0.00 in both years. Donors can donate more than once in a year so there can/will be multiple entries with the same donor ID.
Table(s): I have a single donor table which has the Donor ID, Contribution Date, Amount, and other fields not pertinent to this problem. I also have a date table
In my visual I will have a slicer where the user will select the "reporting year." I will have a card which shows the distinct count of donor IDs during that year. The second card that I want to display would be either the count or percentage of those donor IDs which also contributed in the prior year.
E.G. 50 distinct donor IDs contributed in fiscal year 2023 (card 1). How many, or what percentage, of those 50 also contributed in fiscal year 2022? (Card 2)
Appreciative of any assistance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I found exactly what I was looking for at How To Compare Two Table Of Calculated Data Virtually in Power BI (enterprisedna.co). Kudos to Enterprise DNA.
My report page used that information to produce the 3 bottom cards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I found exactly what I was looking for at How To Compare Two Table Of Calculated Data Virtually in Power BI (enterprisedna.co). Kudos to Enterprise DNA.
My report page used that information to produce the 3 bottom cards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

You can make this a Matrix and add Donor ID (my example shows storename)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

My example model has Time Intelligence by selecting the Date table as Date Table and DateKey as the date column. Sales is a fact table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

thanks very much for the input. I think the difficulty is that there is a subset of IDs (say in 2023) from the donor table and out of those IDs I need to discover which ones also contributed in 2022. It could be all of them or a partial number of them. While the count of distinct donor IDs is pertinent to the visual, it is the list of those distinct IDs that needs to be found against the donations from last (prior) year.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-16-2024 02:52 AM | |||
09-21-2024 12:45 PM | |||
09-19-2024 12:01 PM | |||
09-05-2024 05:59 AM | |||
08-28-2024 01:11 PM |
User | Count |
---|---|
136 | |
107 | |
88 | |
58 | |
46 |