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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
leanns
Helper I
Helper I

Task Names Separate lines for Same Project

Hi, 

 

I'm sure this is a simple solution, but I'm struggling to figure it out. 

 

My problem is that I have a data source (I don't have access to the power query unfortunately which I believe could solve all my problems so this needs to be done in the table editor) that lists all the tasks in a project individually. Each row in this data source has task name, project name, project id etc and I want to pull select tasks out because these are the important ones. In a table that I was able to edit and create, I pulled the columns Task Name, ProjectID, ProjectName, and the start date related to the task to create my separate Task A, Task B columns. 

 

I can pull the tasks out, but when I put them into a table visual each task is a different line and it's not connecting them to the same project. I filter out each task into it's own column at the moment using an if statement to look for the name of it within the Task Name column of the data source. 

 

For example see below: 

leanns_0-1593445934012.png

As you can see in the picture above (I just used excel to show my problem easily), they are the same project with two (or more) tasks that go with it but they won't be on the same row. In the relationship manager, I connected the projectID column with the original column to see if that would help, but it doesn't appear to be. 

 

Is there a way to do this? 

 

Thanks!

1 ACCEPTED SOLUTION

Great. Thanks for the data.

Does the ProjectName have typos? (additional upper case and lower case d on some names - i edited them)

I created a matrix visual (with ProjectName in rows, TaskName in Columns, First Startdate in Values).

I used the filter pane to filter TaskName to Task A, B, C, D.

and this is what I got

Annotation 2020-06-30 172435.png

View solution in original post

10 REPLIES 10
HotChilli
Super User
Super User

Can you post the data (not a picture) and show what the desired outcome is please?

 

Also can you clarify why you don't have access to power query?

@HotChilli 

 

Hi, 

 

Sorry but I can't post the data because one there is data that I can't share outside of the organization and since I can't access the source I can't delete the sensitive data. 

 

The desired outcome is this: 

 

Project NameTask ATask BTask CTask D
12345Date1Date2Date3Date4
67890Date5Date6Date7Date8
25468Date9 Date10 

 

 

I want all of the tasks that correspond with the same project Name to go on the same row, but currently they are creating a new row for each task. Not every task will have a date for each project, but there is a possibility of it. 

I don't want to see the real data. I want to see some sample data that shows what the table (or tables) looks like.  Mock something up in the same way you've done with the desired outcome.

@HotChilli 

Hi, please see the original post for the currrent state. 

@HotChilli , I realized now that you're looking for how the data is coming into the source. 

 

Here's how it looks before I manipulated it to pull out my individual tasks:

 

ProjectNameProjectIDTaskNameTaskIDStart Date
12345id1random tasktaskid1

date1

12345Did1TaskAtaskid2

Date2

12345id1task2taskid3

date3

12345id1TaskBtaskid4date4
67890did2task1taskid5date5
67890id2TaskAtaskid6date6
67890id2TaskCtaskid7date7
56738id3TaskDtaskid8date8

 

This is basically how the data appears in the table editor and the bolded rows are the tasks I'm looking for. Table below is the manipulation I've done so far to get my desired tasks (these are calculated columns within the table above just pulled out separately to show easily)

 

TaskATaskBTaskCTaskD

 

 

 

 

Date2

 

 

 

 

 

 

 

 date4  
    
date6   
  date7 
   date8

Task columns are calculated by: TaskA = if(TaskName = TaskA, StartDate, "")

 

I hope this helps and I appreciate you helping me. 

Great. Thanks for the data.

Does the ProjectName have typos? (additional upper case and lower case d on some names - i edited them)

I created a matrix visual (with ProjectName in rows, TaskName in Columns, First Startdate in Values).

I used the filter pane to filter TaskName to Task A, B, C, D.

and this is what I got

Annotation 2020-06-30 172435.png

@HotChilli 

 

Thanks for the help. I knew it was simpler than I was making it out to be. 

 

The project name could have different ways of writing it and I believe I was able to figure that out myself. As for the matrix, I recently found out that the dates used for say Task A is considered the start date and the date for the rest of the tasks (B,C,D) is the end date. Is there a way in the matrix to denote this? 

possibly add a calculated column to add text "Start Date" to "Table A" and "End Date" to everything else.

Use this new column instead of Task Name in the matrix Column.

@HotChilli 

 

Hi, so it works and I was able to get rid of the duplicating rows which is great! But now I have a different problem. My task name column doesn't show every single task because there isn't a task associated with it. Is there a way to show all column even if there isn't a date available for it? 

 

I have this option checked shown in the picture below and it didn't change anything. 

leanns_0-1593551942891.png

 

What I currently have: 

ProjectTaskATaskBTaskDTaskF
12345Date1Date2 Date3
67890 Date4Date5 
45678Date6  Date7

 

What I want: 

ProjectTaskATaskBTaskCTaskDTaskETaskF
12345Date1Date2   Date3
67890 Date4 Date5  
45678Date6    Date7

 

I want all columns to be shown whether theres a value or not. 

TaskName and Date are calculated columns. TaskName is numbering the key tasks from 1-6 and then Date is looking at this column and pulling either the end date or the start date depending on the task name. 

 

I would assume that there's something I need to add to my if statement in the date column to do this, but I only want the rows that correlate to the key tasks and not the rest. There is over 100,000 rows in this data source and over half are not needed. 

 

Basically what's happening is that there aren't any tasks in the Original TaskName column that matches the KeyTask Name and because of that there isn't a date to look for since it's not there and thus it won't show up in the matrix. 

 

Thanks!

If the tasks were in a separate related dimension table, the 'show items with no data' should work

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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