Cognos Headers/Footers - cognos

Does anyone know if it's possible to have more than one Overall Footer in a list? I am building a list that contains a 3 row table in each column, and the list is grouped by product. I would like two of these rows to show as overall totals for all products in the list. I have added an Overall Footer for one, which is summing correctly. I had to use a List Page Footer for the other which is returning the last amount in the list instead of summing. I tried to use 'Summarize' but since each column contains 3 separate rows of data, I'm not sure if this is possible. I'm trying to avoid creating separate data items for each column that will sum by product (ie total(Sales for Product)) because I have lots of columns and that will equate to lots of extra data items.
Any help would be much appreciated. Thanks!

You can have more than one header/footer row within a list. Click the list, then go to the 'Headers/Footers' button just to the right of Section/Pivot and add additional header and footer rows. By default they add as one merged row, but if you select if you can unmerge it into individual cells.
Hope Im following you here for the next part...
If you want to repeat the overall totals in one of these footer rows in the child table, I would do it via singletons. Having a parent/child relationship may force you to create an additional query which is just the total values. Then have the singletons reference that new query, not either the parent/child.

Unlock the report, drag block/s in the footer where you want to repeat the summary data, drag your data items inside the block.

Related

Remove Blanks from cascading (dependent) drop-down list

So I've got a table with two drop-down lists; the first is a drop-down list of categories, the second is a list of projects within those categories. The way it works is simple: you pick a category, and then the second list gives you the appropriate projects. The lists are based on this table:
The problem I'm facing is that the number of projects in each category isn't the same, so while it works fine for categories like Graphic Design (Column D), the list for categories like 3D animation (Column B) are filled with blank spaces.
Is there any simple way of getting rid of the spaces?
Ideally by having excel ignore blanks, because we add new projects from time to time, so Id like the range to stay the same, and not have to fiddle with it too much when adding new projects.
Thanks :)
Here is a simplified illustration on one way to achieve what you want. Note I am applying this in Sheet2.
Let's assume that your lists are in a table called Table1.
Let's assume that your initial dropdown is in E2, and that options must correspond with the header names in Table1.
Firstly we will create a name called DepDD_All, as follows:
=INDEX(Table1,0,MATCH(Sheet2!$E$2,Table1[#Headers],0))
This will generate a sub-list for your dependent dropdown, including blank lines.
To create lists based only on the actual line count, I will use a secondary name, called DepDD_Dyn, as follows:
=INDEX(DepDD_All,1,1):INDEX(DepDD_All,COUNTA(DepDD_All),1)
Reference this name in your dropdown to display only lists with relevant number of items.

Excel Pivot Tables for multiple tags

I'm using Excel 365. I have a program that exports Excel files, and one field is a bunch of tags, separated by commas.
Let's say it looks something like this:
The program allows multiple tags (there's maybe 20 that could be changed in the future) to be selected as ingredients for each kind of candy. It is not a consistent number, though they seem to always be alphabetical.
I'm looking to make some kind of table by ingredient and chef, according to time, like this:
I'm trying pivot tables, but they come back with long ingredient lists, when I really want just one item per line. I also tried making an additional column for each ingredient, which searches the main column and returns yes or no based on if it's in the ingredients column. It's still not working to have a single item listed each row with pivot tables- it gets into lots of levels and sublevels that way.
It's very likely there will be more ingredients and chefs in the future, so I'm trying to stick to some pivot tables where people can push "refresh all" to get the new ones. Ideas?
If you can build your ingredients list manually and add the names across the top then you can calculate the totals using a SUMIFS formula.
=SUMIFS($F$2:$F$5,$B$2:$B$5,"*"&$A10&"*",$C$2:$C$5,B$9)
if you put the formula above in cell B10 then autofill across and down then the values will be calculated automatically.
To break it down so you understand what's going on
=SUMIFS(**$F$2:$F$5**,$B$2:$B$5,"*"&$A10&"*",$C$2:$C$5,B$9)
is the range you want to sum under the total column. It's locked using $ so it doesn't change when you autofill.
=SUMIFS($F$2:$F$5,**$B$2:$B$5**,"*"&$A10&"*",$C$2:$C$5,B$9)
The range you want to check with the tags in each cell, also locked.
=SUMIFS($F$2:$F$5,$B$2:$B$5,`"*"&$A10&"*"`,$C$2:$C$5,B$9)
The cell containing the ingredient you want to count with a star at each end to act as wildcards so it can return true when the cell contains the ingredient. The column is locked.
=SUMIFS($F$2:$F$5,**$B$2:$B$5**,"*"&$A10&"*",**$C$2:$C$5,B$9**)
last bit is the range of the chef list (locked) and the criteria above locked by row.
I can't think of a way to automate the ingredient list but hopefully the formula will help.

How to filter for MULTIPLE ROWS using Excel search

So I have an excel spreadsheet containing 100k rows, and I have a list of "unique identifiers" that are listed on some of these rows.
As opposed to clicking the dropdown -> paste unique identifier, rinse and repeat, to grab all of the unique identifiers that I'm looking for, is there a way to say "show me all of the rows that contain this list of 20 unique identifiers"?
I will try and answer the actual question. :/ Just to reiterate: You want to see just the rows with the "unique identifiers" in another table. Actually will require more information from you.
Are the "unique identifiers" all in one column?
That is the easiest to solve (if all in one column). I would actually use a separate column to 'mark' these rows. Make a list of the unique identifiers using Formulas(tab) and Define Name. Then write a countif statement in the new column using the new name. Filter out all 0 values and you are left with all rows that match the other list. I have frequently used this when I need to identify a sub-list in a larger list.
Ex: =COUNTIF(List,A1)
First reply - ignore separate issue
No, there is not quick fix to show the unique fields. I wish there was. The best way that I have found is to do a quick pivot table off to the side and use that field as the main group. You do not even need to complete the pivot table because it will show just a list of unique items, which you can copy and past off if needed. It is a dirty fix but it is much quicker than trying check them through the drop down.

How to add complex header/footer to list report in Cognos?

I want to build a list report with complex footer and header, the issue is: if the column number of footer is bigger than the list body.it seems difficult to add more column to the footer. If I add list footer, the column number is just as same as the list body, I can merge,but can't split a cell. Please tell me how to achieve this. I know I can add a table to the tail of that list, and fix the width of list and table, but I don't think it is a good idea, because the table wound not repeat in every page. And sometimes needs to merge celles cross rows or columns.

How to use Cognos report studio creating a list with dynamic columns?

I need to create a table list in cognos, but the columns of this table would change depend on the data.I don't know how to do this. I just know in cognos report studio, we can drag data into cognos list report.
Update:
I don't know how many columns in this table.Because different data generate different number of columns.Actually,one row of data is a tree hierarchy.For example,the first columns is root,the second column is its child,and maybe the third columns is second child,or first grandson,and so on.So the columns always change.
In report studio just make list report by dragging on your wish.
But make sure it contains all columns that you need (i mean columns inculded in dynamic changes).
Say 4 columns you need at max.
Name
Roll no
Age
Address
Then create conditional style vairable (You can find in center bar)
now based on this condition dynamically chose the style.
Eg: If condition 1 satisfied
Name
Roll No
If condition 2 satisfied
Name
Address
I would use a Crosstab instead of a List. The columns are created dynamically without any other programming involved.
Just drag a Crosstab into report page, set the columns and rows (which can be nested by the way) and finally, drag the fact field right at the center of the Crosstab.
Try the following:
Create a list as per the requirement.
Hide the columns.
In each column expression, give the condition and set show as per the condition.

Resources