The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
I'm trying to create a Calendar using List.Date function
I got the list correctly and I converted the list to a table
Now I want to create custom columns to have the year, month, etc...
However I'm getting an error saying Token eof expected; what's wrong? please advise
Solved! Go to Solution.
=[Date].Year([Date]) is not a valid formula.
Try duplicating the date column 3 times. Then for each new column, use the menu Transform\Date\Year etc
= Date.Year([Date]) is the correct formula.
So "Date.Year()" is the function and the "[Date]" is it's argument.
Try
Date.Year([Date])
Date.Month([Date])
=[Date].Year([Date]) is not a valid formula.
Try duplicating the date column 3 times. Then for each new column, use the menu Transform\Date\Year etc
User | Count |
---|---|
80 | |
74 | |
41 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |