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
Isa-TheHague
Frequent Visitor

Create Line Chart with multiple columns on axis

Hello PowerBi Community,

 

Im working on a project to monitor our Facebook campaign results. Among campaigns that don't use video's there are some campaigns that do use videos.

I work with a export file from Facebook with the following columns and values (example):

 

Source:

Campaign_NameVideoviews 25%Videoviews 50%Videoviews 75%Videoviews 100%
A60040010050
B4002002010
Cnullnullnullnull

 

As you can see the export file puts the number of users that watched a video to a certain percentage in a column that describes that percentage.

I want to plot the course on videoviews per campaign in a line chart like this:

 
 

Schermafbeelding 2021-01-29 183757.png

 

I do not know if this is the desired way to do it but I came up with the though that the data should be transformed like this:

 

Transformed table:

 

Campaign_NamePercentage viewedVideo views
A25%600
A50%400
A75%100
A100%50
B25%400
B50%200
B75%20
B100%10

 

Can you help me create this table within PowerBI / Power Query?

 

Thanks in advance!

 

Best Regards,

 

Isa

 

 

1 ACCEPTED SOLUTION
Evgeniy_O
Frequent Visitor

Hi @Isa-TheHague 

In Power Query, select columns you want to transform, then select Unpivot button on Transform tab. 

Eugene

View solution in original post

1 REPLY 1
Evgeniy_O
Frequent Visitor

Hi @Isa-TheHague 

In Power Query, select columns you want to transform, then select Unpivot button on Transform tab. 

Eugene

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.