Min Su Sun Posted June 16, 2023 Share Posted June 16, 2023 Ask how to display data on the chart only when a specific value is selected in a specific filter.If two or more values are selected for a specific filter, data should not be displayed on the chart. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted June 16, 2023 Share Posted June 16, 2023 Hello,One way to do this, for one chart, could be something like in this example, checking if the UniqueCount of the filter column is 1 (evaluating the axis expression on current filtering only).My data is this:ID Value1 Value21 1 a2 4 a3 6 a4 3 b5 4 b6 4 c7 7 c8 6 c I create a plot - bar chart in this case - with the following axis expressions, wanting to filter on the column Value2:Category Axis:<If(UniqueCount([Value2])=1,[Value2],null)>Value Axis:Sum(If(UniqueCount([Value2])=1,[Value1],NULL))In the properties for the bar chart > Category Axis > Settings > Evaluate axis expression > Current filtering only (For more info on those settings, see https://docs.tibco.com/pub/sfire-analyst/12.4.0/doc/html/en-US/TIB_sfire-analyst_UsersGuide/index.htm#t=vis%2Fvis_details_on_advanced_settings.htm)Result: Link to comment Share on other sites More sharing options...
Min Su Sun Posted June 17, 2023 Author Share Posted June 17, 2023 Oh, I'm sorry I couldn't go into detail. This is a method you already know.Rather than setting data to null in the visualization table or cross table chart, I want the data not to appear in the visualization table or cross table chart.I tried using the expression below in Data > 'Limit data using exprssion' in the chart properties of the visualization table or cross table, but it doesn't seem to work every time the filter is changed.[Note] Only ALL data exists in column A.[A] = if( UniqueCount([Value1]),"ALL","")When I select one value in the filter, I want the data not to be displayed in the visualization table or cross table, rather than setting the data to null. If there are multiple ways, please let me know. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted June 21, 2023 Share Posted June 21, 2023 I'm afraid I have no ideas at this point (but hopefully someone else has). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now