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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors