Does anyone have an update on when the “WHERE” function used to define context of measurement in formulas will be included in WEBI?
Secondly, is there any workaround for the same?
I’m having a report where in i want to calculate the count of occurences of certain variable which has values “Y” or “N”
To give more details, i have a column (database object) named Claim Number and want to count the claim number WHERE some condition is met.
In my report i’m not displaying all the details of the claim number but i’m aggregating the total (count of claims) at the region and division level.
let us say out of 50 claims 25 are pending (identified by the flag v_pending as Y or N), the lay out of report should display as follows:
=====================================
Region Division Claim Count --Table Heading
RGN_NM1 DVSN_1 20
RGN_NM1 DVSN_2 30 --Body Cells
Totals: 50 Footer 1: Grand Total
Pending Count: 25 Footer 2: Pending Totals
Ideally had it been in thick client (6.5 and before) the formula for the pending count would have been: Count() Where (<v_pending>=“YES”)
Now in WEBI, i’m trying to rewrite the formula as follows but it gives me #MULTIVALUE error
=Sum( If([v_pending]=“Y”;1;0))
or as Count(If([v_reserve_pending]=“Y”;[Claim Number];0);Distinct)
which gives me improper results.
SQL - it contains the keywords SELECT as well as WHERE.
WebI - the syntax that’s used for creating report-level variables. The language does NOT contain the keyword SELECT. However, it does contain the keyword WHERE.