Please supply a packaged workbook to the community to better understand the question and the desired outcome that you are having issues trying to create.
The article Packaged workbooks and flows: when, why, how is created and maintained by the community as a guide to assist in how to make up sample data that best allows the community to engage and assist.
From the description, it sounds like you may need to pivot your data. I recommend starting with https://onlinehelp.tableau.com/current/pro/desktop/en-us/data_tips.html
If you are able to provide some dummy data and a mockup of what you want the final graph to look like, then we may be able to provide more specific help.