Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everybody,
I'm not very familiar with M, but I'm try to add a new column using a very simple expression:
if Date.Month [MyDate] < 5 then Date.AddDays ([MyDate], 365) else [MyDate]
Apparently, I'm missing out something since it returns me the following Expression Error:
PowerQuery: We cannot apply field access to the type Function.
Where am I going wrong?
Thanks everybody!
Solved! Go to Solution.
Date.Month is a function so you need to put the parameter in brackets. That will move you on a bit
Thanks a lot! It works
Date.Month is a function so you need to put the parameter in brackets. That will move you on a bit
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
41 | |
40 |