Forum Discussion
Custom column in PQ
I am in the midst of data cleansing. In the datasource there is a contract "start date" and contract "end date" column. I want to add a new column which extracts
Current staff = if the contract end date is more than 30 days from today
Future exit = if the contract end date is less than 30 days from today
Incoming staff = if the contract start date is less than 30 days from today.
The format of the start date and end date is in date format, But end date has a lot of nulls. If the end date is null I want the custom column to return as just null or invalid end date
I did try using multiple formula's its either giving me error or its giving me different answer. Kindy help.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
2 Replies
- lbendlinSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- AnonymousNot applicable
Hi I took some help from the internet created a new column in the source data (excel) in this case and created a formula to achieve this. Now its sorted and working fine. Thank you so much for your help. Really appreciate your time.