Tableau: how to build cascading parameters? - tableau-api

Just see as following image
what I want to realize is, when I choose a specific area in the Area dropbox, The Block dropbox only shows the content which only belong to the selected area. How to realize that in tableau? Area and Block are both parameters.

I would advice you to use filter. then for the block filter,click the arrow on the top right and select "Only Relevant Values".The block filter will then refresh after you choose an area to show only the blocks related to that area.
For parameters currently the dynamic refresh feature is not present, though it is being demanded.

Filters can cascade in Tableau if you select the "Relevant Values" option on the quick filter. (see the little black triangle in the top right of the quick filter).
You may want to also put the two fields into a hierarchy to teach Tableau that Blocks are subordinate to Areas, but Tableau will try to show only relevant values even if you don't define the hierarchies explicitly. To make a hierarchy, drag fields on top of each other in the data pane on the left.
There is no concept of relevant values for parameters currently. Each has an independent range of values. Parameters are not tied to a data source.

Related

Differentiate the different area paths in Azure Boards under the same Team

At the moment, I have one Team with two different area paths defined, however I have issues filtering out the epics and features that are related to one of the area paths since the Filter option does not keep the tree form in its result.
Is there a better way to organize the backlog when I have two different area paths and need easily identify which one a work item belongs to?
Is there a better way to organize the backlog when I have two different area paths and need easily identify which one a work item belongs to?
Method 1. Add "Area Path" as a Column.
Click Column Options at the top and Add "Area Path" as a clumn. Then you can see area directly at the page.
Method 2. Use queries.
Go to Boards/Queries. Create a query and set your Work Item Type and your Area path. Here is an example.
Then select "Tree of work items" in "Type of query".
You will find work items in a specific area arranged in a tree form.
One way to filter is by specifying an area path in the filter text area like:
Note that it does not work with the Kanban board.

How do I get an object that will both extend vertically to fill a section AND have a background determined by a formula?

Goal
Create a table.
Problem
The first column of the table is text, and sometimes has to extend down to the next line. Meanwhile the other columns need to become gray based on some external conditions. These boxes will also have content, assuming a grey background is not applied.
The Reason I'm Asking
When I search for an solution to this problem, I am confronted with conflicting answers, telling me to use one or another of options, neither of which fill my requirements.
Text fields only extend when their text requires them to, and will not fill a section.
Text fields can have their background controlled by a formula.
Boxes are able to extend automatically to fill a section.
Boxes do not have any properties controllable by formulas.
Does anyone know how to deal with this problem at all? I have even seen suggestions to stack objects and suppress them, but this will not work for boxes, which cannot have a formula applied to their suppress.
EXAMPLE:
It turns out they eventually fixed this issue in a later version of Crystal Reports:
This is available in version 13, SP19.

Tableau software - Is it possible to hide a parameter depending on the value of another parameter?

I have a dashboard with three displayed parameters:
Time range (Last month, This month, Last 30 days, ..., custom interval)
From (the begin date of the interval)
To (ending date of interval)
My point is that I want to display "From" and "To" parameters only in case when "Time range" parameter is equal to "Custom interval".
Otherwise, i want to hide them, or make them impossible to edit.
Could you help me with this please ?
Thanks.
There are a handful of techniques for selectively hiding components on a dashboard, informally called "sheet swapping".
One simple approach is to place a floating worksheet in a layer above the components you wish to hide -- and make that worksheet have filters based on calculated fields that lead to zero rows or columns being displayed when you wish to show the components below. Then if you hide the title on the worksheet, it will display as zero pixels high or as its complete height depending on the parameter settings.
Here is an example of that approach https://public.tableau.com/en-us/s/gallery/music-uk
Another form of sheet swapping that gives you a little more flexibility is to place the components that wish to selectively display inside a layout container along with a component whose size depends on the parameter setting. Then you can adjust the "fit" options for the worksheets and where and how you place the layout container to make the optional controls slide in and out of the dashboard, or slide beneath or out from under a floating component.
Joshua Milligan published a workbook demonstrating some of these techniques http://public.tableau.com/views/SheetSwappingonSteroids/PracticalExample and he also describes them in his (highly recommended) book Learning Tableau 10
Robert Rouse also published a blog entry showing some fancier sheet swapping techniques https://www.tableau.com/about/blog/2016/1/how-create-collapsible-menu-container-tableau-48610
Note, sheet swapping puts a bit of unnecessary load on the Tableau server if overdone (computing layout positions for views that won't be displayed anyway).
If you don't mind a bit of coding, another option is to embed your visualizations within an HTML page of your own design. Then you can use all the power of HTML and CSS to style parts of your UI - including hiding and showing input controls. Then write a bit of JavaScript using Tableau's JavaScript API to let Tableau know when someone updates an HTML control so it can update the visualization in response. For a really robust complex page, that might be a better choice than trying to emulate HTML/CSS with sheet swapping techniques in a Tableau workbook.

SSRS Multiple parameters in single drop-down

I have a feeling I am probably out of luck on this one, but Is it possible to have more than one parameter in a single drop-down list on an SSRS report? For example, the drop-down could be titled shape/color, and when opened, the top of the list shows shapes, and one can be checked, then below that in the same list, is a list of colors, where one can also be checked. Possible at all?
It is really best to have separate drop-downs for each attribute, but within a single drop-down you would first set it to "Allow multiple values". You can setup your drop-down to be formatted so that the sections of available values are grouped together. Finally, you'll need to add a query or function to check that valid combinations were selected before trying to display the results. In other words, make sure only one shape was selected. You can set an error message with a visibility that toggles based on the selection. This is one method to do what you are looking for, but if you are new to SSRS, you will probably have more specific questions along the way. Once you have more details on a specific step, you can get help with that.

Dynamically removing table from rdlc report

I'm creating an SSRS report in VS2012.
Under Tablix Properties I can show or hide a table using an expression which uses a boolean parameter; but this leaves a gap in the report.
Is there a way I can just remove the table?
You could call a subreport and determine different subreports based on a variable. You cannot remove space with SSRS to my knowledge of it, it is not designed to remove space, just perform different actions on objects that take up space. I don't even think you can resize the objects dynamically unfortunately. You can cheat though and make two subreports, one with the supposed table and one without. Then when your variable gets hit it calls one and not the other. Since a subreport can change sizes that is a way to thus trick the system's language limitations. It may not fit your needs but it is a thought that could in theory solve this problem.
I think it depends on the report layout and all sorts. I created the simplest case:
From Designer mode you can see it's just three tables in the report, nothing else. The middle table's visibilty is parameter based. In this case, SSRS does make an effort to shift the last table depending on whether the middle is visible:
In this case you still have maybe too much whitespace showing. There are various ways around this. One example is embedding the middle table in a Rectangle that extends to top of the last table, then moving the visibility expression from the table to the Rectangle. In Designer:
End result, looks better:
I guess all I'm trying to show is that SSRS does sometimes move things around based on visibility, but you can also apply extra control using tools like Rectangles to control visibility and layout.