Forum Discussion
DAX Measure Formula to Calcualte Running Fleet
- 6 years agoCreate this measure:
TotalGrowth = CALCULATE ( SUM ( 'Table'[Growth] ) )
And then this one:
Cumulative Growth = IF(MIN([Date-Year])<=CALCULATE(MAX([Date-Year]),ALL('Table')),CALCULATE([TotalGrowth],FILTER(All('Table'[Date-Year]),'Table'[Date-Year]<=MAX(('Table'[Date-Year])))),BLANK())
Let me know if that works for you! - 6 years ago
Hey, Suhel! Sorry I'm still learning a lot of this so I probably won't be able to help much more, but in your calculate function, shouldn't you add a SUMX in there?
No worries, Thank you for all your help, i fingered it out the working formula, i did a little change in the formula and same is seen below. Thanks Josh, with your formula the visuals rendering had been reduced from 21300 mili second to 900 mili seconds ....
Formaul
Running Fleet =
{IF(MIN([Date].[Year]) <=CALCULATE(MAX([Date].[Year]),ALL(Table)),
CALCULATE(([Registrations]-[Terminations]),FILTER(ALL(Table[Date].[Year]),
Table[Date].[Year]<=MAX((Table[Date].[Year])))),BLANK())}
Regards
Suhel
- joshlwulf6 years ago
Helper I
Great to hear, Suhel_Ansari! I'll definitely keep this post in mind. I could see where this would be really useful in some situations.
- Suhel_Ansari6 years ago
Helper V
Even I will keep it in my mind for ever.. Thanks for all your prompt response.
Regards
Suhel