Forum Discussion
Target to date
- 4 years ago
Hi, renlaforest
This error shows that you are using the custom column feature in powerquery.
But the code is DAX, not M code. You need to create it in desktop.
Best Regards,
Community Support Team _ Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for your help. For some reason, and I've tried Googling (unsuccesfuly) what could be causing it, but I get an error message: Expression.Error: The name 'IF' wasn't recognized. Make sure it's spelled correctly.
I have:
IF (
TODAY () > [Start Date],
IF (
TODAY () <= [Close Date],
([EN Targeted Completes]
/ ( DATEDIFF ( [Start Date], [Close Date], DAY ) + 1 ))
* ( DATEDIFF ( [Start Date], TODAY (), DAY ) + 1 ),
[EN Targeted Completes]
),
0
)
Hi, renlaforest
This error shows that you are using the custom column feature in powerquery.
But the code is DAX, not M code. You need to create it in desktop.
Best Regards,
Community Support Team _ Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.