Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
I have a function in my code which specifies today's date, under this form: Date.Today = Date.From(DateTime.LocalNow())
I have a new column with the following code returning the error on the screenshot and I can't for the life of me figure out what is going on. I have tried to add Date.From in front of Date.Today but to no avail. Any ideas?
if [Date_Receipted]<>Date.NotDelivered
or Date.Year([#"Date_Promised (calculated)"]) > Date.Year(Date.Today)
then null
else "Week "&Text.From(Date.WeekOfYear([#"Date_Promised (calculated)"])-Date.WeekOfYear(Date.Today()))
Solved! Go to Solution.
Issue is due to the fact that you have use Date.Today() which should have been Date.Today
Issue is due to the fact that you have use Date.Today() which should have been Date.Today
Thank you very much, I obviously looked at this far too much and missed it 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |