Tableau checkbox filter to suppress zero rows - reporting

I'm pretty new to Tableau, and am unsure how to implement a feature that's been requested by business users.
We have a report where each row has
Owner - grouping text field
Scenario - text field
Functional Area - text field
A graph of values over time
Each of these rows (i.e. Scenario) has a dimension named Latest Occurrences, which has the latest integer value from the graph.
I want to have a checkbox filter on the side of the report named "Show empty scenarios" where if it is checked it shows the scenarios where Latest Occurrences >= 0, and if unchecked shows the rows where Latest Occurrences > 0. I'm entirely unsure how to implement this in Tableau, does anyone know how?

I've come up with an answer that allows suppression of non-zero rows, but it's not a checkbox by itself, rather a dropdown with multiple checkboxes. I'll leave this question open in case someone comes up with a way to do that.
My solution, currently, is to create a calculated field called Scenario Issue Status with the following definition:
IF([Latest Occurrences] > 0)
THEN 'Current issues'
ELSE 'No current issues'
END
Then add that as a Filter with "Current Issues" checked and "No current issues" unchecked, make that filter visible, and change the filter type to "Multiple Values (dropdown)". That's about as aesthetic as I can make it, though it's not a simple suppression checkbox.

Related

Unclear Document regarding AEM form validation

Hi everyone wonder if anyone can provide pictures or the exact steps pertaining to how to locate the "validation expression according to this link https://helpx.adobe.com/experience-manager/6-3/forms/using/adaptive-form-expressions.html#main-pars_header_3
Also while you are here I am wondering if it is possible to use these validation tools to check if the income is greater than the cost. i.e the user have to key in a higher value in the income numeric box as compared to the cost numeric box. If not providing a guide that allows me to do this would be great.
Many thanks in advance!
The validate expression is written using the Code editor of the rule editor. For e.g., I've created an adaptive form with 2 Numeric Boxes (Income and Cost) as shown below.
So, to validate if the value entered in the income is always greater than the cost, then click on the Income field and then click the Edit Rules icon. This will open the rule editor
Once in the rule editor window, click on the Income field on the left rail and then click the Create button.
In the Create Rule window, you can use the Validate event and configure the required condition.
You may also need to write a similar condition on the cost field as well, but in reverse (Cost is less than Income) so that when someone changes the value in the Cost field, it is validated too.
As far as your original question goes, if you switch to the Code Editor, it should give you another editor where you can write Javascript to validate the value. The validation expression from your documentation link goes there (see below).

Stop SSRS From Hiding Columns

How do I stop SSRS from hiding a column when previewing if the column has nothing more than empty rows? I have set all columns to be fully visible, yet the report preview does not show the empty columns. I know that this is a default feature within Visual Studio that hides all empty columns by default, so how do I change it so it can show all columns no matter what. Where can I change those settings?
If you mean the preview in the query designer of the dataset:
This is only possible when writing your own MDX since the generated code always generates a SELECT NON EMPTY for the measure axis. So removing the NON EMPTY part will always show your column/measure.
If you mean the ssrs report preview:
Columns only hide when using a table matrix with a column group. In this case make sure your dataset always returns each column group at least once, regardless of your chosen filters. E.g. if using MDX this could mean removing a NON EMPTY from your row axis or using the right-click option "include empty cells".
Clarification for comment plus possible workaround:
This "hiding columns" things is no feature. If the column isn't in the result of the dataset, SSRS can't know that this value even exists, so there is no solution if using a column group except for redesigning your query.
You could work around this by not using a column group and instead of using static "hard-coded" columns which, for example, sum the values depending on your group. See the following example screenshot i made: example

Is there a quick way to set a visiblity expression for many rows in a SQL Server Report Services RDLC report?

I have a report with many tables (tablixes?), in which I need to hide all rows that don't have a value in the 2nd column:
I can do this by right clicking on each row
and setting an expression for the visibility of the row that depends on a value appearing in the field of the 2nd column, e.g.
=IIF((Fields!MyField4.Value = ""), True, False)
But the problem is that my report has over 1000 of these rows! It will take a very long time given that each field has a specific name! I can modify the Xml, but this will also take a while. I am currently writing some code, which uses XDocument, to achieve this.
Are there any faster ways that anyone can think of? Maybe something from the designer, or some VB code? Everywhere on the internet seems to suggest right clicking one row at a time.
In the Designer, select all of the rows (using your Shift or Ctrl key), and use the Properties pane in VS/BIDS to change them all at once. There is a Hidden property there, and you can choose Expression from the dropdown in it. From there, you can apply the IIF to all rows.
Of course, I am assuming all of the visibility is based on the exact same expression for each row. If not, then the answer is no. Unless, you want to start doing some copy/paste stuff in the RDL XML, which I do not recommend.

Show tablix total outside of table

I have a weekly report which totals anywhere from 200 - 1000 rows of data. For my accounting people, the total is the only value of import as they simply use it for accrual purposes. I would like to either have the total appear at the top of the report or in a separate text box indicating this is the total for the report. Does anyone have a good idea on how to accomplish this?
If I understand correctly you need to get the result of some aggregate function on a tablix shown in a textbox outside the tablix.
That can be achieved by placing a textbox anywhere on the report, and in the expression for that textbox add a reference to the dataset you need to aggregate, e.g.:
=Sum(Fields!SomeValue.Value, "myDataSet")
Where SomeValue is the name of the field you need to aggregate, and myDataSet is the name of the DataSet that fieldis in.
Your question has already been answered by the other answer. Just as an alternative, you could try one more thing.
On the "details" row group(which appears by default), right click and choose "Add Total".
This will appear in a separate text box outside the report.

Crystal XI - Include a group total for values where the group field is null

I'm using Crystal Reports for VS2010, programmatically generating the identity of the 'group-by' fields at run time using VB.NET in a WinForms application.
Two group-by fields - the outer total is correct, and the inner sub-totals are correct, but no sub-total is shown for all the detail records that don't have a value for the group-by field.
So for instance, grouping by Country, where the address in the detail records don't have a value for country.
It just makes the report look stupid, since the sub-totals don't add up to the totals.
Is there an easy way of generically including a sub-total for the ones that don't have the group-by value?
It sounds as though some of your sections are being conditionally suppressed on whether the group is null. I suggest you open the report in the Crystal Reports designer, and check the Section Expert (either select from the toolbar or right-click in the grey margin to the left of the report layout area and select Section Expert) for each section to see whether the relevant sections are being conditionally suppressed (the x-2 button next to Suppress would be coloured red).
It would also be worth checking whether any sections are being suppressed programmatically, and whether any of the sections are being suppressed when blank (although if a sub-total is displayed even in sections with null group values, this shouldn't matter).

Resources