Hiding a cross tab node in Cognos 11 - cognos

I have a cross tab as in the below picture. I need to hide Col4 in it. When I give box type = none the cross tab node (col5) moves to col4. I tried the below solution but couldn't but still I have this issue.
Steps I followed.
Unlock the button and click on col4 text and removed it.
Changed the padding to 0
Ran in Excel and got that col4 row as well.

Col4 is not a column. It's a value in your data. What you are asking is the same as hiding a row (or group of rows) from a list. Add a filter to remove that value from your output.
Using generic object names...
[Namespace].[Query Subject].[Query Item] <> 'Col4'

Related

Get all the data in a cell in Sframe

I am supposed to find data related to a particular value given for a column. I am given the corresponding value in col1 and need the relevant data from col2. I ran the following code using turicreate.
sf1[(sf1['column_name'] == 'corresponding_value')].show()
After this, I get the "Materializing SFrame" section with the data in it. The graphs highlights show a small part of the required data from col2 but not all of it. I need all of the data. How do I print it?
(I can't attach screenshots of the incomplete cell data as this from a coursera assignment and I wish to avoid any academic dishonesty flags.)
try this: (num_rows = any number of rows you want to see)
sf1[(sf1['column_name'] == 'corresponding_value')].print_rows(num_rows=100)

Tibco SpotFire - Line chart data columns linked to itemized selection list

I'm new to Tibco SpotFire, so please forgive any mistakes in terminology, etc.
I have a line chart with two columns from the data table selected to be shown on the y-axis. I would like to make an itemized menu where you can select one item at a time, such that which two data columns are shown on the y-axis is a function of which item in the itemized menu is chosen.
For example, let's say my data table column names are Col_1, Col_2, Col_3, Col_4, Col_5, and Col_6. I want to make an itemized selection menu with items A, B, and C, such that...
If A is selected, Col_1 and Col_2 are the data columns used by the y-axis.
If B is selected, Col_3 and Col_4 are the data columns used by the y-axis.
If C is selected, Col_5 and Col_6 are the data columns used by the y-axis.
How can I accomplish this? Currently, I know neither how to make an itemized selection menu at all, nor how to link the y-axis data columns to it.
Thanks for any help.
P.S. I'm betting there is a technical name for what I'm calling an "itemized selection menu" above. If someone knows what it is, please let me know and I will edit this post accordingly.
You'll need a text box and a line chart. In the text box, add a Property Control (Drop-down list). You'll want to create a new document property that looks something like this:
After that, you'll need to tie in the Document Property to your plot. Some code like the following should achieve what you are looking for:
case when DocumentProperty("Selector")="Col1Col2" then Sum([X])
when DocumentProperty("Selector")="Col3Col4" then Sum([Y])
when DocumentProperty("Selector")="Col5Col6" then Sum([Z])
end,
case when DocumentProperty("Selector")="Col1Col2" then Sum([XX])
when DocumentProperty("Selector")="Col3Col4" then Sum([YY])
when DocumentProperty("Selector")="Col5Col6" then Sum([ZZ])
end
Where column [X] and [XX] would be tied to "Col1Col2" and so on. Now, selecting "A" from the drop down in the text box will plot [X] and [XX] on your plot.

Excel - Lookup multiple values in unknown columns and create bar chart out of it

I am trying to get the following thing to work in Excel. I have a list of values out of which I want to create a bar chart. Easy thing normally, but in this special case I do not know how to get it to work with references that change.
I have the data structured as follows:
Name Site Value
---------------------
A X 1
---------------------
B Y 2
---------------------
G Z 3
---------------------
D Z 0
---------------------
F X 1
---------------------
Q Y 2
---------------------
From the information available in this array I want to create three different bar charts, one per site. The problem is that I don't know the absolute cell references, as the data is inserted by colleagues. In addition, the number of datapoints to display is not known either. In case there a three different entries for one site, I want to display a bar chart with these three values, the names of the entries should be used as the label for the bars in the chart. In case there are four different entries, I want to display a bar chart with four bars, etc... This whole table should be dynamic, so in case that a new entry is added to the range with the corresponding site, it should be automatically included in the bar chart.
I already tried to find a workaround for this and read about dynamic charts and lookup functions in excel, but nothing did the trick so far.
If you have any idea, please let me know.
Thanks in advance :)
What I would suggest is:
Create 3 Pivot Tables. The data source for each of them would be: A:C (the whole columns). This way, when an entry is added, you just update the tables and they get in.
Column "Site" should be added as a filter, then on one Pivot Table you would filter only for site X, another for site Y and the other for site Z.
Now, "Name" go on Rows and Value go on Values.
Now, for each Pivot Table you add a bar chart.
I think this solves your issue.
Here'a a screen showing it. My excel is in PT-BR but I think you can get the general idea.
Edit: you can also put the same scale on all 3 charts, so you can easily compare the values.
Thanks to both of you guys and sorry for the late reply. In the end I got it working with pivot tables, though I had to fiddle a bit with the pivot table wizard, as I wanted to display values from multiple sheets. Thanks again and best regards :)

Increase width of systablelookup to remove horizontal scroll bar (out of 3 columns only 2 are shown) - Dynamics AX 2012

Googled a lot on this but didn't find any solution. Here is the problem:
I've created a lookup using systablelookup. The lookup is working fine and is returning the selected field. The problem is with the number of columns shown on dropping the dropdown. I've added 3 columns (Col1, Col2, Col3), but the lookup shows 2 columns col1 and col2 with a horizontal scroll bar. The col3 appears only when you scroll using horizontal scroll bar.
Please suggest solution to remove horizontal scroll bar from systablelookup.
Regards,
Maninder
The way SysTableLookup works is it dynamically builds the controls. You can see how it does this in \Classes\SysTableLookupBase\formRun
To accomplish what you want, you need to extend the class SysTableLookup and override buildGrid or buildControlsFinal or some other method and through code make the form changes you want.

Groovy column formatting with text wrapping

I am printing some output from a database to a text file. I will basically print out four fixed-width columns. The last column may need to wrap to the next line as the output from the db may be longer than the column-width. Is there an easy way (or plugin) to do this in groovy? Obviously if the column wraps, I don't want any further output from the other three columns to display until I'm done wrapping the last column.
This next part I'm more worried about. Two of the other columns may also need to wrap - but can only wrap if that last column also needs to wrap. Otherwise, I don't need to wrap those other two columns. Output would be something like this:
Col1 ..... Col2 no-wrap.......Col3 no-wrap.......Col4 no-wrap
Col1 ..... Col2 can..............Col3 can..............Col4 now needs
.............. now wrap.............now wrap.............to wrap so wrap
......................................................................the others
look at
http://groovy.codehaus.org/Formatting+simple+tabular+text+data
for an example on how to format in columns with wrapping

Resources