Exago BI - Cannot reference a cell with an aggregation while referencing cell is part of an aggregation - exago

I am using an AGGCOUNT function. This returns a the number for each unique combination of values, so some rows return 1, 2, etc for a grand total of 17, with 13 unique rows.
At the bottom of my report, I tried using a DATAROWCOUNT() function to return 17 to give me the grand total from the AGGCOUNT function, but it only returns 13. When I try to sum all of the values from the AGGCOUNT function using another AGGCOUNT function, I get the below error message:
exago bi cannot reference a cell with an aggregation while referencing
cell is part of an aggregation
Any suggestions?

Related

Filter sumproduct formula based on array

Given Table 1, I am able to calculate the sum of the revenue with the SUMPRODUCT formula. Though, I would like to be able to filter out specific areas directly in the formula. The formula listed below gives the correct result (13,000) when area B is filtered out of the data with:
=SUMPRODUCT(--(Sales[Area]<>Exceptions[Area]);Sales[Quantity];Sales[Price per unit])
However, when I add another area in Table 2, the formula returns an error. Is it possible to filter out multiple variables (areas) directly in the formula?
Use ISERROR(MATCH()):
=SUMPRODUCT(--(ISERROR(MATCH(Sales[Area];Exceptions[Area];0)));Sales[Quantity];Sales[Price per unit])
--(ISERROR(MATCH(Sales[Area];Exceptions[Area];0))) will return 1 if the area is not found in the search area, because the MATCH will return an error when it is not found in the list.

Searching non-leftmost values with VLOOKUP-like function in Excel

I have a question about excel function.
The question is:
I want to use VLOOKUP-like function, but VLOOKUP only search leftmost row.
Is there any function that searches non-leftmost row (you can select) and the behavior is almost same as VLOOKUP function?
If you don't understand, please see this picture.
I want to do like this in Excel.
Thank you for reading.
INDEX MATCH Combo
You can use combination of 2 functions:
INDEX function
The INDEX function returns a value or the reference to a value from within a table or range.
MATCH function
The MATCH function searches for a specified item in a range of cells, and then returns the relative position of that item in the range. For example, if the range A1:A3 contains the values 5, 25, and 38, then the formula =MATCH(25,A1:A3,0) returns the number 2, because 25 is the second item in the range.
Example
=INDEX(Name_col, MATCH(Rank_input, Rank_col, 0)).
Equivalent, using your concrete data, assuming you have "Alex" in A3:
=INDEX($A$3:$A$7, MATCH(A10, $C$3:$C$7, 0))

Match two columns in two excel files and return value [duplicate]

I am trying to create a simple VLOOKUP function for my spreadsheet using the below:
In the first sheet
=VLOOKUP("Salary",'December 2015_natwest_download'!$D$4:$E$43,1,FALSE)
This is the sheet i am trying to reference:
The sheet I am trying reference:
Value Category
======= ==========
£530.00 Charlotte Owing
-£53.00 Gym
-£16.47 Water
-£67.00 Phone
-£11.01 Presents
-£14.40 Eating out
-£100.00 Food
-£65.00 Other
But when I put the VLOOKUP code into my excel, it returns NA. Can anyone see what is causing the error?
The VLOOKUP function is designed to lookup a value on the far left of a block of data and return a corresponding value from a column to the right.
If you need to lookup a value and return a value from a corresponding column to the left of the lookup column, you need to use an INDEX/MATCH function pair.
If you are returning numbers based on a condition (either in that column or another column) either the SUMIF or
SUMIFS function will do. Individual entries can be easily collected but if there is more than a single match to your condition, you will receive a sum total of the matching numbers.
        
The formulas in E4:F4 are,
=INDEX('December 2015_natwest_download'!A:A, MATCH(D4, 'December 2015_natwest_download'!B:B, 0))
=SUMIFS('December 2015_natwest_download'!A:A,'December 2015_natwest_download'!B:B, D4)
Note that the SUMIFS in F5 is returning two Gym entries.

INDEX MATCH value from matrix

I am fine at using index match to pull a value from one column, but what I want to look up a value from a matrix?
I have a list of errors by area, so a row (RowA2:A6) for each area and a column (columns A:F) for each error type and then a count of errors by area. I then use a max function to get the maximum value from the matrix. I then want to look up which area is associated with this value. However the value can come from A3 to F6. Is there a way I can do index match over this matrix rather than just one column?
The AGGREGATE¹ function can quickly locate the row or column containing the MAX value from a two-dimensioned matrix and pass that back to an INDEX of either the row or column header labels.
The formulas in E9:E10 are:
=INDEX(C2:G2, AGGREGATE(15, 6, COLUMN(A:E)/(C3:G6=MAX(C3:G6)), 1))
=INDEX(B3:B6, AGGREGATE(15, 6, ROW(1:4)/(C3:G6=MAX(C3:G6)), 1))
        
The conditional formatting rules that visually identify the maximum value and both column and row labels are:
    Red Applies to $C$3:$G$6, UAFTDWCTF, =C3=MAX($C$3:$G$6)
    Orange Applies to $B$3:$B$6, UAFTDWCTF, =COUNTIF($C3:$G3, MAX($C$3:$G$6))
    Orange Applies to $C$2:$G$2, UAFTDWCTF, =COUNTIF(C$3:C$6, MAX($C$3:$G$6))
¹ The AGGREGATE function was introduced with Excel 2010. It is not available in earlier versions.

How to return the sum of functions dynamically in excel

I have the following table in my excel.
and I have the VBA function (fcComm) to calculate the some number with reference values as in =fcComm(A7,B7,D7,F7,"2:3").
For each row (for eg, Row 7) I will have values automatically generated in Scores table (from row 11 to 16).
But I have a scenario where I need to add more number of rows above row 10. and I would want my function to automatically give me the sum of results of function
For example,
If I have 3 players (40, 41, 42) in row 7, 8 and 9, i want the following value in E13.
=SUM(fcComm(A7,B7,D7,F7,"2:3") + fcComm(A8,B8,D8,F8,"2:3") + fcComm(A9,B9,D9,F9,"2:3")).
Is there any function in excel to sum these values dynamically ?
Note: I am using =SUM(E7:OFFSET(E10,-1,0)) for some other function in the same sheet, but this particular table is bit unique and I am not sure how to use this.

Resources