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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
aakashdmorya
Frequent Visitor

Converting rows to column grid in SharePoint Online List Report

I have 2 SharePoint List.

 

Project (Project_ID, Project_Title) and Project_Tasks(Project_ID, Tasks_Title) [here Project_ID is lookup column from Project list.]

 

I have data as:

 

Project:

Project_IDProject_Title
P-1Project-1
P-2Project-2
P-3Project-3

 

Project_Tasks:

 

Project_IDTasks_Title
P-1Tasks-1
P-1Tasks-2
P-2Tasks-3
P-2Tasks-4
P-2Tasks-5

 

I am able to generate the following report.

 

Project_IDProject_TitleTasks
P-1Project-1Tasks-1
P-1Project-1Tasks-2
P-2Project-2Tasks-3
P-2Project-2Tasks-4
P-2Project-2Tasks-5

 

But My requirement is to generate a report like

 

Project_IDProject_TitleTasks
P-1Project-1
Tasks-1Tasks-2
P-2Project-2
Tasks-3Tasks-4Tasks-

 

In this case, the Pivoting will not help me. I have alreadty tried.

 

You can download my sample file here.

 

PowerBI Report File

 

With the help of this answer I was able to merge the data to the single column, but my requirement was to add every task as a new column under "Tasks" header? Find reference below

 

Capture.PNG

 

Because I have to put the background color on each of the tasks based on its status.

 

Any reference link will be helpful.

1 REPLY 1
stvsurf
Resolver I
Resolver I

I would use an index column to get be able to pivot the tasks in Power BI, then you can use a conditional formatting on a status field in Power BI.

 

This is what I would do on the projects table in Power Query:

Power Query.png



 

project.pngproejct_Tasks.png

 

conditional on Pivot.png

Apologies for posting M as an image, but I got an HTML error on the code

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors