It only shows only an example for a rangeFilter.
I need to make it work with a categorical filter.
It doesn't tell me how to get the data source name or what it looks like.
I'm doubting this feature even exists, and I'm now just screwing around with the API to see if it works at all.
I worked on this problem all last week. Then after about an hour after making this forum post, I started thinking. Every example of using hierarchy with filters has opening and closing brackets in the example. Brackets were also present in KB example. Before, I interpreted the brackets to indicate that the entire string it enclosed (including the brackets) were to be substituted by my values. So I was doing something like this (which is wrong):
worksheet.applyFilterAsync('federated.07srrt40o0w5vw1bs30zk0zqssuf.geography', 'US', tableau.FilterUpdateType.REPLACE)
Instead of this (which is right):
worksheet.applyFilterAsync('[federated.07srrt40o0w5vw1bs30zk0zqssuf].[geography]', 'US', tableau.FilterUpdateType.REPLACE)
Once I applied the brackets, applying filters to a secondary data source worked.
Message was edited by: Matthew Ary