leatherhen99
New Member
- Joined
- Dec 17, 2019
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
Hi All,
I have a start date and an end date... and I'm using a custom column in power query to give me the networkdays:
This is working as designed... until the DueDate is null... and that's because someone might not know the end date of their project... I'd like to set it up so that if there's not an end date, it will calculate the date through the end of the next calendar year... if not next year, then this year...
I am trying to update the [DueDate] within the custom column to an if statement, but DAX is new to me... so I'm struggling with updating this formula or creating a new column and updating it...
I have tried:
but it says there's an error, but it won't tell me what is wrong or how to fix it
and I've tried to create a custom field, but the null dates are still giving the errors
Any help would be appreciated!
I have a start date and an end date... and I'm using a custom column in power query to give me the networkdays:
Power Query:
= Table.AddColumn(#"Removed Columns2", "Actual_Number_of_Days", each Networkdays([StartDate],[DueDate],HolList))
This is working as designed... until the DueDate is null... and that's because someone might not know the end date of their project... I'd like to set it up so that if there's not an end date, it will calculate the date through the end of the next calendar year... if not next year, then this year...
I am trying to update the [DueDate] within the custom column to an if statement, but DAX is new to me... so I'm struggling with updating this formula or creating a new column and updating it...
I have tried:
Power Query:
= Table.AddColumn(#"Removed Columns2", "Actual_Number_of_Days", each Networkdays([StartDate], if([DueDate] = Blank(), Date.EndOfYear, [DueDate]),HolList))
and I've tried to create a custom field, but the null dates are still giving the errors
Any help would be appreciated!