Forum Discussion
Formulae to copy/paste dates based on conditions
- 2 years ago
Hi Fab117 ,
yes, you applied the code to each row of the table instead of just to the table itself.
Easiest would be to:1) Create a new query
2) Copy my query code into the advanced editor (replacing everything that exists there so far)
3) Replace the content of the first "Source"-step by a reference to your query
If you run into problems with that, please watch my video here: http://community.powerbi.com/t5/Webinars-and-Video-Gallery/Power-BI-Forum-Help-How-to-integrate-M-code-into-your-existing/m-p/179314
Hi ImkeF,
Thank you for spending time on my issue.
It seems that there something I missed.
I applied your approach to my case, but didn't get expected results.
Below some print screen (I filtered only on one project and hide non relevant columns.
1. Base:
2. After adding the custom column with your code:
3. Additional columns for extension:
4. Result:
Would you know what I do wrong?
tks.
Fab
Hi Fab117 ,
yes, you applied the code to each row of the table instead of just to the table itself.
Easiest would be to:
1) Create a new query
2) Copy my query code into the advanced editor (replacing everything that exists there so far)
3) Replace the content of the first "Source"-step by a reference to your query
If you run into problems with that, please watch my video here: http://community.powerbi.com/t5/Webinars-and-Video-Gallery/Power-BI-Forum-Help-How-to-integrate-M-code-into-your-existing/m-p/179314