Dear all,
Please help me to create a stacked bar chart in Analysis in OBIEE like the picture below

I have a table data like this
| Fail_Reason_Code | Period | Direct_reason | Indirect_reason |
| AI | ThisPeriod | 10 | 3 |
| AI | LastPeriod | 12 | 4 |
| TA | ThisPeriod | 7 | 2 |
| TA | LastPeriod | 10 | 4 |
| WE | ThisPeriod | 15 | 5 |
| WE | LastPeriod | 11 | 3 |
| RA | ThisPeriod | 13 | 9 |
| RA | LastPeriod | 7 | 5 |
I think I should create a dimension with level-based hierarchy in RPD. I tried but seems I am on wrong way.
Please help me.
Thanks in advance.
Pham