sergiy razumov
New Member
- Joined
- Nov 3, 2015
- Messages
- 2
Hi, everybody!<o></o>
I’m quite new to DAX and have a situation that I don’t know howto handle.<o></o>
I’ve a measure that calculates growth of Students enrollmentcomparing to the previous year:
<o></o>
It works just fine if data is in context of years. But on GrandTotals I have zeros (there is no previous years for Totals).
<o></o>
Can somebody suggest please how this formula can be modifiedto show for Grand Totals the sum of individual years’ growth, so that in GT wehave growth of the students for all the years? That sounds like iteration overthe years, yet I have no idea, how to manage this situation in DAX.<o></o>
I’m quite new to DAX and have a situation that I don’t know howto handle.<o></o>
I’ve a measure that calculates growth of Students enrollmentcomparing to the previous year:
<o></o>
Code:
mGrowthAccepted[CoE]:=IF(ISBLANK([mCostOfCampaighn]),BLANK(),<o:p></o:p>
[B] [mStud(Accepted[CoE]])]-[mStud(Accepted[CoE]]_LY)]<o:p></o:p>[/B]
)
It works just fine if data is in context of years. But on GrandTotals I have zeros (there is no previous years for Totals).
<o></o>
Can somebody suggest please how this formula can be modifiedto show for Grand Totals the sum of individual years’ growth, so that in GT wehave growth of the students for all the years? That sounds like iteration overthe years, yet I have no idea, how to manage this situation in DAX.<o></o>