on ‎2016 Aug 17 6:20 PM
Hello and Hello Vadim,
i've tried to use "AVG" formula to calculate the average of an account node. As long as the period has values the formula works great but as soon as there are "empty cells" the result is not correct. Please see attached picture ... Is there any solution on that? I've tried to insert dummy zero value to fill up the empty cells but this can't be the soluton
AVG(PERIODSTODATE([TIME].[LEVEL00],[TIME].CURRENTMEMBER),[ACCOUNT].[PARENTH1].[BPCN45])
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I would like to see the last average value of period XXXX.12 in XXXX.TOTAL column as well. I've played around with .LAG(-11) but without success. I will try your formula tomorrow.
Another tiny question. Do you recommend nested formulas? I don't have "hana mdx" at the moment due to back-end issues but we'll get it soon and then I would like to use nested formulas. But the last time I had issues with them as well
Thank you
Sorry Vadim but I've one question after the other ...
Is it possible to create a formual that works differently in Periodic or YTD measures selection?
The above formula is used on an AST account type and I've the correct result on Periodic view. Now I would like to Switch to YTD and the result should cumulate the single period values
Hi Vadim,
I've to come back on this post.
CoalesceEmpty was a great help but it is not supported with HANA MDX!
Now I've tried something like this:
Avg(PeriodsToDate([TIME].[LEVEL 00],ClosingPeriod([TIME].[LEVEL 02],[TIME].CurrentMember)),IIF([NODE123]=0,0,[NODE123]))
the formula is excepted by WebUI but I get a dump in EXCEL
Do you have any other idea to get the right avg?
Many thanks!
This is causing us big Problems
If tried to do it with a nested formula
1ST_FORMULA: IIF([NODE]=0,0,[NODE])
2ND_FORMULA:
Avg(PeriodsToDate([TIME].[LEVEL 00],ClosingPeriod([TIME].[LEVEL 02],[TIME].CurrentMember)),[1ST_FORMULA])
Result: 2nd Formula accumulateds values ....
now, I could divide by month num or?
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 6 | |
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.