Creating an Interactive Bar Chart for Flag Counts in QuickSight Without Hierarchical Issue

Hi all,

I’m working with a dataset that has five categories as columns, where each category has flags as values that are either “Warning” or “Pass.” I want to create a bar chart where:

  • The Y-axis represents the five categories.
  • The X-axis shows the count of flags (“Warning” vs “Pass”).

However, I’m running into a couple of issues with QuickSight when trying to achieve this:

  1. Hierarchical Issue with Multiple Columns:

QuickSight seems to treat the five categories as a hierarchy when I attempt to use multiple columns in the chart, making it difficult to display the counts of “Warning” and “Pass” flags side by side for each category. I need to find a way to plot these counts without QuickSight combining them as a hierarchy.

  1. Using Two Datasets:

To get around the limitation, I tried using two datasets—one that’s pivoted and another one in a normal format. The goal was to split the counts of “Warning” and “Pass” for each category into separate bars. But this introduced complications:

  • Filter Actions: Since I was working with two separate datasets, the filter actions didn’t work well across the visuals, which broke the interactivity of the dashboard and led to a disjointed narrative.
  • Parameters: I had to use a lot of parameters to filter and link the two datasets, which became cumbersome and didn’t scale well.
  1. Pivot Table Visual:

Next, I switched to a pivot table to show the count of the flags. However, this approach has a downside—it’s not clickable, because I had to use the columns in values, which limits the interactivity for the user.

What I’m Looking For:

I’m hoping to get some advice or suggestions on how to:

  1. Properly create a bar chart that shows the count of flags for each category on the X-axis, with the categories on the Y-axis, without QuickSight treating the columns as a hierarchy.
  2. Avoid using multiple datasets if possible, or work around the limitations of filter actions and interactivity when using multiple datasets.
  3. Ensure the final chart or visual remains interactive (clickable) while also showing the count of “Warning” vs “Pass” flags for each category.

If anyone has faced a similar challenge or has a workaround for these issues, I would greatly appreciate your help!

Thanks in advance!

Hello @ashley_rebello welcome to the QuickSight community!

To me it sounds like you want a horizontal bar where there are two bars (warning and pass) for each of 5 categories. So there will be 5 total groupings, each grouping with 2 bars.

You shouldn’t need to use two datasets to achieve this.

What do you mean by hierarchical issue? Can you send a screenshot of what you are seeing? For example, here is a similar bar chart that shows Region as the y axis, with each bar representing the sales per business segment:

Hey @ashley_rebello

Are you still working on this or were you able to find a solution?

Hi Duncan, Thank you for your reply and yes I am still working on it. In your screenshot you have a single column region which has all different regions(Categories). In my case I have 5 different columns and each column is a category that I wanna plot just like you plotted region. And each column has two values either Warning or Pass. I want to show Warning counts for all categories.

Hey @ashley_rebello,

Do you mean that you want to use stacked bar charts?: Using bar charts - Amazon QuickSight