Hi,
I am trying to get a Percentage of Budget field added to my Budget to Actuals report and the simplistic formula is supposed to be [(Actuals + Encumbrance) / Budget] with expected results shown below in red.
To provide a little more context, below is a rough data-table structure from which the Budget, Encumbrance, Actual and Remaining were extracted.
Calculated Formulas I have used are:
Since all fields used in the table are sum, I didn't have to use the sum function anywhere.
Now for Percentage of Budget, I have tried the following and none of them work (some give me infinite, whereas others give me error "Failed to preview report. The expression used for the calculated field 'PercentageOfBudget' includes an aggregate, Row Number, RunningValue, Previous or lookup function").
Percentage of Budget formulas I have tried:
I have also tried the coding Report Properties and then replacing the formula with code.division(Fields!Actual,Fields!Budget). No luck whatsoever.
Any assistance you can provide will be greatly appreciated.
May 12, 2021 at 8:37 pm
Sad bump, no one knows 🙁
May 13, 2021 at 2:20 am
well, when I ran the CREATE TABLE and INSERT scripts, nothing happened, so I couldn't reproduce the problem.
May 14, 2021 at 3:12 pm
Hi,
Can you please elaborate? When you say nothing happened - as in, you saw the proper percentages as shown in picture 2 red and green text?
If so, which formula did you use for Percentage of Budget field? And what did you use in the table, aggregate, average or sum etc.
I found my answer by looking at this video: https://www.youtube.com/watch?v=Zebwsa-3QZQ&list=PLNIs-AWhQzcmEFHyxCRwA_gb29WOz5SJU&index=44
Solution:
That is all. Super easy once you learn the trick.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply