Forum Discussion

skyf's avatar
skyf
New Member
2 years ago

Measure creating duplicate rows with other row's data

Measure: = sum('OA TE6 Timecards' [OA TE6 Timecards.Time (Hours)]) - max('LU Project'[pse_planned_hours_c])

 

I wrote a measure I'm using to count all the hours on timecards in one table, and comparing that to a "Planned Hours" column to determine if the went over the allowed hours and by how much.

 

There are currently four projects that have an overage and the measure gives me a line for each with the right total over overage.

However, there are new lines, where each project appears four times, all columns blank, except for the project manager which is mixing up and putting each other's manager on the other projects.

 

I have the relationship set to project number, where the one project number in the project table links to the many timecards in the timecard table. There is a second relationship out to timecards table of another system via the same project ID relationship (one to many from project table out to both timecard tables). 

 

I've realized that adding the project manager as a column in the visual is causing this. The PM is listed on every timecard record and I expected it to roll up in the visual. The PM is the same for every row for each project. So, why is PBI mixing them up?

1 Reply