The quick answer is "put something on the Color card".
It depends on your dimensions, but in your first image you've put Quarter on Color and in the last one you've put the other dimension on Color instead
I already did that but no luck yet. Not sure which filed to put where to have stack
Do you have some dummy data to work with ? Can you post it here so we can help ?
Please note that stacked bars are not easy to generate comparisons across dimensions as your examples showcases. The reason is that only the bottom bars have the same baseline. The others inner bars are hard to compare because they don't sit on the same baseline.
If these are timeseries (quarters?) I would recommend using a timeline and highlighting the line you want your audience to see first. For that you just need:
1 - Add the Quarter of your Date in the Columns Shelf
2- Add your measure (e.g Sum(Sales)) to Rows Shelf
3- Add your Dimension (e.g Ship Mode) to Color. Then you can edit the color by assigning Teal to the ship mode you want to highlight and leave others with a light gray
See the example below using Sample Superstore.
Note: if you really want to use a stacked bars, just change your marks from Line to Bars.
Stacked using Tableau's default color pallet
It is simple to achieve it.
Here comes what actually you want?
If you want to compare how are the sales across each category then you can show it using 100% stacked Bar chart.
Else Simple Stacked Bar chart as shown below.
Please find attached workbook for your reference. Kindly mark it as answered and helpful it this solution works for you so that we can close the thread.
Book1.twbx 1.4 MB
If you can create a stack with my dummy data. Book7.twbx.
It will be really useful