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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Dear Community Members,
I have a dax calculation that gets the count of students that were admitted 4 years ago.
My challenge is how to sum it, the result gives me the last value as the total instead of the sum of each row.
Please find my DAX query below:
Student Count Adm 4Yrs =
CALCULATE(
DISTINCTCOUNT(Admissions[AUGSTNO]),
DATEADD(DATESYTD(DimDate[Date]),-4,YEAR),
USERELATIONSHIP(Admissions[AUGSTNO],Graduation[GSTNO])
)
What I expect is the total to be the sum of the Student Count Adm 4yrs for each year.
Any direction to resolve this would be appreciated. Table showing the last value as the total
Solved! Go to Solution.
Hi @Pbrit try test measure below
Test =
Did I answer your question? Kudos appreciated / accept solution!
Proud to be a Super User!
Hi @Pbrit try test measure below
Test =
Did I answer your question? Kudos appreciated / accept solution!
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
4 | |
3 |