Prateek Rawat Posted February 2, 2022 Share Posted February 2, 2022 There is a bar chart. If i select something from the filtering panel automatically one bar should get populated for the selected item and one more bar should appear that should sum all the non selected item. This need to be archived without scripting. How to achieve this Link to comment Share on other sites More sharing options...
Gaia Paolini Posted February 2, 2022 Share Posted February 2, 2022 Here's an idea that uses a document property and a calculated column. This example is for plotting the Species column of the Iris dataset. 1- create a textarea with a multi-selection list for the unique values of the column you are interested. Say it is called selectedMulti 2-create a calculated column with this code, call it SelectedSpecies case when Find([species],'$map("${selectedMulti}", ",")')>0 then [species] else 'Other' end 3 - set the bar chart to display SelectedSpecies rather than Species The result is attached as an image. P.s. if you have many similar entries in your column you will need to tweak the formula a bit to make sure it captures the entire value. Link to comment Share on other sites More sharing options...
Fabian Duerr Posted February 2, 2022 Share Posted February 2, 2022 Try to use subsets in your visualization. In the properties of the visualization go to Subsets and select "Current filtering" and "Not in in current filtering". Then use (Subsets) on the x axis and/or color by option. 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