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.
Hello everyone,
How can I fix this error:
Expression.Error: We cannot apply operator - to types Date and Number.
Details:
Operator=-
Left=20/04/2022
Right=1
I'd like to substract 1 from the date.
Thank you
Solved! Go to Solution.
Hi @FranckGbadamass ,
You might wanna consider this M Power Query:
Date.AddDays ( [Merged.1], -1 )
Does this help?
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Hi @FranckGbadamass ,
I may have reproduced your wrong scenario.
You should use Date.ToText() and Number.ToText().
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @FranckGbadamass ,
You might wanna consider this M Power Query:
Date.AddDays ( [Merged.1], -1 )
Does this help?
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
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 |
---|---|
13 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
10 | |
7 | |
6 | |
6 |