Trying to get Tableau parameter to recognize filters applied - filter

I have a dashboard with two worksheets. One of the worksheets is a bar chart with just one dimension, Model Name. I've added a Top N parameter to it, set to display only the Top N highest priced items.
The other worksheet is a bar chart at a higher category level, and I'm using that as a filter for the other. So when I click on one of the categories, the other worksheet should display the Top N items for that category. But, when I click on a category, the other bar chart goes blank. My thinking is that the parameter is applying to the entire dataset, and not recognizing the filters applied.
I've tried changing the filters to context, but that hasn't rectified the situation. Is there a way that I can get the parameter to recognize the active filters?

If you want the filter to be evaluated first, you can do that by right-clicking on the filter item and select "Add to context."
For more, see Tableau's "Use Context Filters".

Related

Can not add custom field to Y-Axis Average aggregation for visualization

When I try to add Bar Chart visualization, I cannot select any custom field for my messages for Average aggregation (like: "my_custom_field"). Messages are logged and contain this field. How to do this?
I have a strong suspicion that your "messages" field is a string. Average aggregation works on numbers.
I checked this in my own setting and I couldn't run Average on "messages" with default settings, but I could run it on Unique Count.
I don't understand why, but when I create visualization via Visualizations tab/Add new/Vertical bar chart, fields are not present.
But, I can make visualization by:
[OPTIONAL, probably didn't help] Go to Management/Index Patterns and click Refresh image button in right top corner. This will create mapping types for fields that are new since index creation (this was in my case). Such field can be recognized when before its name there is "?", means no type (e.g. # means field has type, like on the image below).
Go to Discover tab and select your field on the left, than click Visualize -> that will allow to select Average aggregate with your field.
This is very inconvenient, but works.

Telerik Reporting: Repeat a page containing 2 graphs and a table

I need to build a report (in Visual Studio) that takes an ObjectDataSource, and groups the data into separate pages. Each page needs to contain 2 graphs and a table that deal with that particular group of data.
How can I approach this? There is some documentation on page breaks on groups in a table, but my pages need to contain charts as well. Is there a demo that shows how to build what I need?
Eventually I will also need to add this report into a ReportBook, but first things first.
If I understand your question correctly this should be straightforward:
Create a new report
Add a group definition to group the data into the two distinct groups that you want to display. [Careful here because if you don't define your groups correctly, you could end up with more than 2 pages] Use a Boolean or "greater than" and "less than or equal" (or vice versa) are your best bets.
Size the Group Details section to be the size of the page you want (8.5"x11" or whatever fits on "one page")
Insert a Panel into the Group Details section and expand it to be the same size as the Group Details section
Anchor the panel to all sides, and set the CanGrow and CanShrink properties to "false"
Inside the Panel add your Graphs and Table and bind to the grouped data
Set the Page Break property of the Group Footer to: "After" to separate the data into two pages

(DHTMLX Grid) Grouping show/hide column checkboxes

So I have a treegrid, and I want users to be able to not only show and hide columns, I want them to be able to show and hide columns in bulk. Right now, I'm using mygrid.enableHeaderMenu() in order to allow the users to show and hide columns. However, I have about 50 columns, and need to give them the ability to show/hide columns in bulk.
For example, a sample of my columns would be:
foo
bar
baz
unrelated
I want users to be able to show/hide the foo, bar, and baz columns using one checkbox, as well as be able to show/hide each column separately.
The shortest way seems to add your own context menu to the header, and call a needed functionality in the item clicking.
In case of using the dhtmlxMenu you may use:
menu = new dhtmlXMenuObject();
menu.renderAsContextMenu();
mygrid.hdrBox.id = "gridHeader";
menu.addContextZone("gridHeader");
Here is the tutorial about the dhtmlxMenu component:
http://docs.dhtmlx.com/menu__index.html
I wound up modifying the enableHeaderMenu function and adding the grouping mechanism in there.
To clarify, I used the source code in dhtmlxgrid_hmenu and created my own functions based off of that code. The actual grouping is done in _createHContext. To have it so that the checkbox for the group enabled or disabled grouping for the entire group, I copied the code for applyHideFunction, named it something else, and had that code apply setColumnHidden to all of the checkboxes in that group.

Magento Attribute Options - Group same store value option with different admin value

in our admin we use the color option set as "dropdown"
we break down our colors very detail. For example in the "admin option values" we have
blue
blue lace
blue-green
blue-green
but on the front end "store view" we want the filter to just have 1 option "blue"
so in the "Manage Options (values of your attribute)" > "Default Store View" we put for all of those "blue"
but on our web site there ends up being 4 separate blue filters.
is there a way on the front end to only see 1 option "blue" with all the products added up?
Exploratory solution:
You need do some custom coding in a class with a name something like the Mage_Catalog_Model_Layer_Filter , there should be a function there called getItems().
The function itself just calls another function which creates a Zend query which grabs the information from the database.
You should explore until you find that Zend query builder and add a group by to the query.
Alternatively you could just take the array of items and modify it before returning it.
Counter argument:
Removing the second, third etc. links from the getItems list should be fairly simple and you'll basically leave only the first link.
But when the user will click on the link the URL will be filtering by the first attribute the results of filtering by the second, third etc. attributes will not be shown.
You'll have to manipulate that logic as well.
Counter proposal:
You can create an additional attribute such as "color_detail" which you can setup to not be visible in the front end or filterable or sortable etc. so none of the users can see it. BAM! Mission completed.
Another approach -- less intuitive -- if you're not already using and displaying product tags you could use those to tag the object with that particular color detail.
Another approach -- more intuitive especially if you want to keep track of stocks and/or allow the user to choose from the list of color details -- is using product options which can be configured to have their own SKU as well as their own stock inventory and can affect the product price and weight.

Pivot viewer changing the default Filters

I have created a simple Pivot viewer catelogue and in the Filter Panel it has a slider for the price with all other Facets below.
How do you bring one of them to the top and sort Alpha rather than Quantity?
If you click the "Sort:Quantity" tag, it should change the sort to alpha.
Are you using the original PV or the new one in SL5? To change the filters in the original one, you need to change the order of the facet definitions in the cxml file. To change the filters in the SL5 version, you simply need to change the order of the PivotViewer properties.

Resources