Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to get a count of records where both FY23 Donations and FY24 Donation <>0, but my calc keeps returning (blank).
CALC:
And maybe there's a better way to count ids of donors that donated in both fy23 and fy24? I'm stumped.
Thanks.
Solved! Go to Solution.
Hi @PBrainNWH ,
What about replacing the comma with double ampersand (&&)?
In a copy-pasteable format:
rReturned in FY2024 =
CALCULATE (
DISTINCTCOUNT ( 'Opportunity Contact Role'[ContactId] ),
'Opportunity Contact Role'[FY23 Donations] <> 0
&& 'Opportunity Contact Role'[FY24 Donations] <> 0
)
Best regards,
Thanks! I actually was able to create this:
FY24 Status =
IF(
'Donations by Customer by FY'[2023 Donations] <> 0 && 'Donations by Customer by FY'[2024 Donations] <> 0,
"Retained",
IF(
'Donations by Customer by FY'[2023 Donations] = 0 && 'Donations by Customer by FY'[2024 Donations] <> 0,
"New424",
"Lapsed"
)
)
I can now count the statuses.
Hi @PBrainNWH ,
What about replacing the comma with double ampersand (&&)?
In a copy-pasteable format:
rReturned in FY2024 =
CALCULATE (
DISTINCTCOUNT ( 'Opportunity Contact Role'[ContactId] ),
'Opportunity Contact Role'[FY23 Donations] <> 0
&& 'Opportunity Contact Role'[FY24 Donations] <> 0
)
Best regards,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 40 | |
| 21 | |
| 18 |