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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors