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 @BuiltInThe80s,
Please modify your formula as below:
Text.From(Date.AddDays([Param1],-7))
Result would be show as below:
Hopefully works for you.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Anonymous
This does work for a custom column but unfortunatley doesn't work in my query. A little more info: I am concatenating the query as text in my query. For example, the following is working for the date/time parameter:
& Text.From(Param1) &
& Text.From(Param2) &
Using your advice it looks like:
& Text.From(Date.AddDays([Param1],-7)) &
& Text.From(Date.AddDays([Param2],-7)) &
This gives me the following error:
Expression.Error: There is an unknown identifier. Did you use the [field] shorthand for a _[field] outside of an 'each' expression?
Removing the square brackets doesn't give an error but also doesn't return any results. Any ideas?
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 |
---|---|
79 | |
73 | |
57 | |
36 | |
31 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |