Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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!
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
10 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |