This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I need to create a chart that shows by month, how many first time registrants there are vs how many repeat registrants, relative to that point in time. I am stuck on how to manipulate the data to accomplish this.
Here's the current data I have. I'm stumped on how to manipulate this.
| Contact ID | Campaign ID | Campaign Date |
| Joe | Webinar A | January 2020 |
| Joe | Webinar B | June 2020 |
| Sally | Webinar B | June 2020 |
| Joe | Webinar C | November 2020 |
| Sally | Webinar C | November 2020 |
Example: Joe registers for webinar A in January, webinar B in June, webinar C in November. In January, he was a first-time registrant. In June, he is a repeat registrant.
Based on this data table, I want a chart that shows:
Solved! Go to Solution.
@Anonymous .
You can use this code to create a new calculated column:
FirstDate = IF('Table'[Campaign Date] = CALCULATE(MIN('Table'[Campaign Date]), ALLEXCEPT('Table', 'Table'[Contact ID])), "First-Time", "Repeat")
Hi,
You may download my PBI file from here.
Hope this helps.
Here are two measure expressions to use in a table visual with the Campaign Date column.
Repeat =
VAR maxdate =
MAX ( Events[Campaign Date] )
RETURN
COUNTROWS (
FILTER (
DISTINCT ( Events[Contact ID] ),
NOT (
ISBLANK (
CALCULATE (
COUNT ( Events[Campaign ID] ),
ALL ( Events[Campaign Date] ),
Events[Campaign Date] < maxdate
)
)
)
)
) + 0
First Timers =
VAR maxdate =
MAX ( Events[Campaign Date] )
RETURN
COUNTROWS (
FILTER (
DISTINCT ( Events[Contact ID] ),
ISBLANK (
CALCULATE (
COUNT ( Events[Campaign ID] ),
ALL ( Events[Campaign Date] ),
Events[Campaign Date] < maxdate
)
)
)
) + 0
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |