Forum Discussion
How to create a chart with separate values but in the same chart
- 10 months ago
Hello DanielFlores ,
To display separate lines for each category (DL15, DL25, DL45, DL75, D110), your data should be in a long format. Here's an example:
| Item | Category | Value |
|--------|----------|-------|
| Item A | DL15 | 10 |
| Item A | DL25 | 15 |
| Item A | DL45 | 20 |
| Item A | DL75 | 25 |
1. Import your data
2. If your data is in wide format (each category as a column), use Power Query to transform it:
- Select the columns DL15 to D110.
- Click Transform > Unpivot Columns.
- This will give you a table with Item, Category, and Value.
3. Create a Line Chart:
- X-axis: Item
- Y-axis: Value
- Legend: Category
Have a nice day,
Vivien
Thanks vivien57 for your support.
I did it, but I still can't get the correct chart I want. There is a way to have all the values dL15,d25,d45,d75,d110 in the line fo each item?
- vivien5710 months agoSuper User
Hello DanielFlores ,
you must pivot so that DL15, DL25... becomes a category and not a column name
Have a nice day,
Vivien