This is what a few rows looks like in my dataset in Tableau
| Country | State | Date | Success |
|---|---|---|---|
| INDIA | MH | 2023/01/01 | True |
| INDIA | MH | 2023/01/02 | False |
| INDIA | KA | 2023/01/02 | False |
| USA | OR | 2023/01/01 | True |
| USA | NY | 2023/01/15 | False |
I want to create a Tableau dashboard that shows a success ratio for a given Country, State and Year. Year is a filter that the user can choose. I also want to show a column that shows date ranges of country and state for a given year, where success was false. Something like
| Country | State | Success Ratio | Failure dates |
|---|---|---|---|
| INDIA | MH | 73% | 01/15-03/20, 04/01-04/15, 05/07, 06/08 |
| INDIA | KA | 73% | 02/15-03/25, 04/01, 04/25-05/07, 06/09 |
| US | WA | 25% | 05/25-08/28, 09/12 |
| US | NY | 48% | 11/01 - 12/20, 12,24 |
Success ratio is defined as percentage of success datapoints over total datapoints for that country and state in that year. I'm using Tableau Desktop, and very new to it
You can use WITH to create two tables (one with success ratio and one with failure dates) and join these to get the desired result. This can be a view tableau looks at. example below