Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrloopy
Regular Visitor

Line chart - Multiple questions and lines

I want to create something  similar to this...

choice.PNG

I have the data in this format... (products A,B,C,D,E)

data.PNG

I'm guessing this is pretty easy, but I just can't get it to work.  Any help would be appreciated.

thanks.

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@mrloopy 

1. Press Ctrl, select the 3 columns with products, unpivot

2. Put the fields like this:

 percent line graph.JPG

 


Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

thanks, I'm getting close.  The only thing is each question should add up to 100% (ex 4.32%, 4.325, 3.78% 3.78%, 3.78%), looks like all points add up to 100%.  How do I change that?

 

ex1.PNG

amitchandak
Super User
Super User

@mrloopy , First Unpivot it. and then use the question as Legend in Visual

https://radacad.com/pivot-and-unpivot-with-power-bi

Unpivot table done.

 

For the line chart, what do I put in the axis and value to show percertage of choice?

 

thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.