Craigc3814
Board Regular
- Joined
- Mar 7, 2016
- Messages
- 217
Good afternoon, I am working in Power BI Desktop and I am mostly comfortable in Power Query but I am not opposed to solving this through DAX either.
I am importing data from my companies financial software and it is causing a bit of an issue when I want to calculate the total fee of all projects that we have
We have a column called Project 1, Project 2, and Project 3, then a fee column.
Project 1 indicates that project number, Project 2 indicates the Task number, Project 3 indicates the sub task fee is just what it is the fee column
a row is made for each unique number between Project 1, 2, & 3
So if a project has tasks and subtasks a row will be created for each one and the fee is calculate per row
the problem I am having is it also creates a row for the entire project and in the fee column gives me the entire fee for the project so when I sum the fees it is doubling our fees
If every single project had tasks or subtasks I could easily just filter our that total row and I would have my number
The issue is every project doesnt. Some projects are just that a project with no tasks or subtasks and I need that total fee line.
Here is an Example
Project 1 Project 2 Project 3 Fee
1234 500
1235 600
1235 1 250
1235 1 1 250
1235 2 100
I want to remove that 1235 line with no tasks because the sum of all tasks get me to 600 but I do not want to remove the 1234 line
I am importing data from my companies financial software and it is causing a bit of an issue when I want to calculate the total fee of all projects that we have
We have a column called Project 1, Project 2, and Project 3, then a fee column.
Project 1 indicates that project number, Project 2 indicates the Task number, Project 3 indicates the sub task fee is just what it is the fee column
a row is made for each unique number between Project 1, 2, & 3
So if a project has tasks and subtasks a row will be created for each one and the fee is calculate per row
the problem I am having is it also creates a row for the entire project and in the fee column gives me the entire fee for the project so when I sum the fees it is doubling our fees
If every single project had tasks or subtasks I could easily just filter our that total row and I would have my number
The issue is every project doesnt. Some projects are just that a project with no tasks or subtasks and I need that total fee line.
Here is an Example
Project 1 Project 2 Project 3 Fee
1234 500
1235 600
1235 1 250
1235 1 1 250
1235 2 100
I want to remove that 1235 line with no tasks because the sum of all tasks get me to 600 but I do not want to remove the 1234 line