Tableau Online: How do I get rid of the automatically displayed 'Abc' column when adding a field to Rows? - tableau-api

I'm trying to put together an Excel style report on Tableau where the rows have an id and some aggregated fields.
Eg.
id | sum(revenue) | sum(hours)
1. 100. 10
2. 200. 20
3 399. 40
However, whether I have just the ids or include the aggregated fields, there is an extra column. It has no header and displays 'Abc' in each row.
Eg.
id | sum( revenue) | sum(hours) |
1. 100. 10 'Abc'
2. 200. 20 'Abc'
3. 399. 40 'Abc'
What is this extra column and is there any way to hide it? Thank you.
Screenshot:

You can drag your measure into the text shelf and Ref Id to Rows. This will give you a text table.
Or you can drag your measure to Columns for a chart.
If you need to just show your Ref Id with no measure, you can hover over the far-right edge of the Abc area and when the double arrow icon shows, you can drag text area to the left to hide it.

You can hide by adding (" ") to your text column #Marks like shown in the picture Remove ABC

Related

How to remove field and fit that section after remove field in crystal report

I created invoice bill using crystal report. Its looks something like this.
I need something like this. My client want to add Description below this amount. Description mean number. its coming from database like other fields. But that description is not every time print. Its mean sometimes that field is blank. I want to if that field is empty hide it and fit that section. I don't want to keep blank field every time. I want to if description is have I want to show is. if description is not i want to print only recordNo, item name, descountprice, quantity and amount without space.
Name | Price | Qty | Amount
-----------------------------
1 Phone 1500 X 2 3000
This is description
2 Mouse 1000 X 5 5000
No description. Blank field. I want to remove this
3 Fan 400 X 2 800
if no have any description I want to remove field and remove gap between 2 and 3
Place that field in its own section and, in Section Expert for that section, use the option to 'Suppress Blank Section' or use a dynamic expression for the Suppress property:

How to group rows in Tableau into bands?

I'm fairly new to tableau and I'm having the following issue. Below is a sample of the data I'm using.
Count | Item
___________________
1 A
3 B
2 C
3 D
5 E
2 F
5 G
9 H
I'm trying to group some of these together so I can show a stacked bar chart of these groups like the following:
Count | Item
___________________
6 A-C
10 D-F
14 G-H
How to do this?
Use Tableau's built-in Create Group feature
View and download the solution workbook on Tableau Public:
https://public.tableau.com/profile/fosstin#!/vizhome/HowtoGroupYourDatainTableau/Dashboard-HowtoGroupYourData
Right-click the Item dimension and choose Create > Group. This will open the Create Group dialog window.
At the top of the window, in the Field Name text field, enter a name for your grouped dimension or use the default title provided by Tableau, which is Item (group)
Select the first set of letters you wish to group, then click the Group button. Multiselect rows by holding down the control key or the shift key.
Type in a name for the group(i.e. A-C) and press enter.
Repeat steps 5 and 6 to create the D-F and G-H groups, then click OK.
Drag the Item (group) dimension to the Rows shelf and the Count measure to Text in the Marks card.
Add a column header to the Count column by double-clicking Measure Values in the data pane.
Right-click the Measure Values pill now on the Marks card and choose Format. Then, in the formatting pane, choose Numbers > Number (Standard)
References:
Tableau Help: Group Your Data
https://help.tableau.com/current/pro/desktop/en-us/sortgroup_groups_creating.htm#create-a-group-from-a-field-in-the-data-pane
Tableau.com Blog: The one-click trick for create headers for single-measure tables
https://www.tableau.com/about/blog/2015/11/how-create-fast-headers-single-measure-tables-45945
You can use a CASE statement to create the groups. I named it group in my example.
CASE [Item]
WHEN 'A' THEN 'A-C'
WHEN 'B' THEN 'A-C'
WHEN 'C' THEN 'A-C'
WHEN 'D' THEN 'D-F'
WHEN 'E' THEN 'D-F'
WHEN 'F' THEN 'D-F'
WHEN 'G' THEN 'G-H'
WHEN 'H' THEN 'G-H'
END
Then add group to your Rows shelf and Count to your text.

delete blank space of crystal report?

I'm building a report with Crystal Reports.
So I have a section that can have the value from a table. This section writes the result of a query and can have 1, 2 , 3 , , N row.
I have set this setting of this values:
If the column does not have a value, I don't display the result and this is ok, but the report shows the blank space. How can I delete this blank space ?
EDIT
The result of my Table5 can be never record or more record. I want to suppres the blank space if the Table5 not have record
EDIT 2
This is the detail section:
I want to delete the part
Parametro | Valore | U.M. | Valori di riferimento
If the value is only white space, or more precisely, only contains space-characters, you can use the Trim-function.
Trim({Table5.Colonna1})
or when you want to suppress the field if it's just white space, put this in the suppression-formula:
Trim({Table5.Colonna1})=""
EDIT
To get rid of the blank part:
Create a new DetailSection below the existing one.
Move the fields Colonna1, Colonna2, Colonna3, Colonna4 and the belonging headers to the new section.
Edit the suppression-formula of the new DetailSection and insert the following formula
formula
If IsNull({Table5.Colonna1}) And IsNull({Table5.Colonna2}) And
IsNull({Table5.Colonna3}) And IsNull({Table5.Colonna4}) Then
True
Else
False
If Colonna1, Colonna2, Colonna3 and Colonna4 can not contain the value NULL inside the database, you could only query one of them and shorten the suppression-formula like following (the same as in your printscreen):
IsNull({Table5.Colonna1})

SSRS Matrix Grouping Vertically to keep headers in same column? Is it not possible?

using SSRS 2008 R2 here.
I've been able to get a similar layout to work with a regular tablix, where I get each group header to fall on top of each other in the same column by adding a row within that group, however I need to use a Matrix because of a dynamic column (month below). When I try to add another row, it only adds a row where the monthly data starts, not in the headers. So the headers stay in their each column. In trying to keep the example as easy as possible, I'm trying to do something like this (Store theme).
STORE NAME | MONTHS
STATE | SALES
TOWN(S) | SALES
which woudl look something like this in a Matrix
WALMART JAN FEB MARCH etc....
TEXAS | 3000 2000 6000
HOUSTON | 1000 500 2500
AUSTIN | 2000 1500 3500
I've only been able to produce something like this where each group is a seperate column:
STORE | STATE | CITY | JAN | FEB | MAR |
WALMART | TEXAS | HOUSTON | 1000 | 500 | 2500 |
| AUSTIN | 2000 | 1500 | 3500 |
Again, I've been able to get a regular Tablix formatted like this, but a Matrix I'm struggling with. Can anyone help me on how to do this? Thank you in advance!!
It is possible using a tablix/matrix and adding some special grouping settings.
Add a tablix with the City field in Row Groups pane:
Right click the City group, select Add Group / Parent Group. Choose State and set Add a Group Header
Delete the left most column (State column added in the previous step).
Note the group is still present.
Right click the STATE group and add a Parent Group as step 2. In this case choose STORENAME
Again delete the left most column (Store Name column added in the previous step)
You will get the following tablix.
Delete the first row
Set the Fields using the Row Group hierarchy order. STORENAME/STATE/CITY
Right click the first cell in the next column and add a group / Column Group / Parent Group. Choose MONTH in group by.
Delete the first row.
Set SUM(Fields!Sales.Value) in the next cells in the same column.
After these steps you will get a tablix like this in design window.
It should produce:
Let me know if this helps.

How do I make a Pie Chart in Crystal Reports that is JOINed?

I'm pretty new to Crystal Reports and I can create Pie Charts just fine, but I can't figure out how to chart a JOIN. For example, I have two tables "A" and "B". In the "link" tab of the Database Expert I've drug a line so that A.FK goes to B.PK.
Table A Table B
-------- --------
PK | FK PK | FK
0 | 1 1 | Gizmos
1 | 1 2 | Gadgets
2 | 2
The pie chart for A.FK would come out looking correct but the value in A.FK would be used in the legend, when I'm expecting the JOINed value of B.FK. So instead of my chart having two slices called 1 and 2, I want the slices to read Gizmos and Gadgets.
Can anyone please assist? Thanks
This is because you are grouping the report by A.FK - you need to change it to group by B.FK.
To do this:
Right-click on your chart and select Chart Expert.
In the Chart Expert dialog, click on the Data tab.
Select B.FK from the Available fields, and click on the first > button to add it to the list of grouping fields (to the right).
Select A.FK from the list of grouping fields and click on the first < button to remove it from the list. Your chart should now be grouped on change of B.FK.
Click OK at the bottom of the dialog.