Basically, what I want to be added up are meetings with an active status with paid amounts that equal zero. Even though I know a few records pass this test, no matter what I do the result comes out to be zero. Can anybody help with this formula?
Put filter [Meeting Status] = “Active” and [Paid Meeting Expense Amount] + [Paid Speaker Expense Amount] = 0 on the result set in the report and then use the formulas.
= SUM([Planned Speaker Expense])
and
=Sum([Planned Speaker Expense]) ForEach ([Meeting Id])
It’s strange, because I add one field to the report (meeting id), and the total changes from $34,348 to $66,819 WITHOUT making any other changes to formulas. It seems that BI is not interpreting my report correctly. (And these totals are changing even though I’ve selected meeting id for both queries, so literally no other changes.)
The formula I’m using is:
=Sum([Planned Speaker Expense]) ForEach ([Meeting Id]) Where ([Meeting Status] = "Cancelled" Or ([Meeting Status] = "Approved" And [Sum Actuals]=0))
I should add that I can’t keep the meeting id in this report, because I’m only suppossed to show totals by speaker. The meeting id breaks down the totals too much, so simply hiding the column won’t work. If you need further details, I’ll show you what’s happening in one report for the same speaker. (Totals for estimates go from $0 without meeting id to $1770 with meeting id.)
I believe that since Sum Actuals should be a total on a meeting by meeting basis, that business objects doesn’t know how to break down the totals unless the meeting id is in the report. I even tried adding a foreach onto the formula:
This results in a multi-value expression, even when prefixed with a sum. Even anybody knows any way that business objects can handle this formula, please let me know.
I had to change how the report was querying the data to use sub-queries instead of the formula. As I said, the formula seems to be correct with meeting id in the report, but incorrect when the meeting id was removed. The report seems to be working now.