Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi everyone,
I want to replace a static date by a power query parameter, i tried some tricks but without result i'm gonna explain it below .
Data source : tha static date it's marked in YELLOW below:
I created a power query parameter named LastDate you can see it below :
Next i tried to replace the static date by this parameter like shown below :
The problem is the function #date("2021-04-30") should have 3 parameters instead of just one "LastDate" and if i add a blank #date(LastDate," "," ") it wont work it can't be converted to number !
Any one can help please ?
Thank you 🙂
Solved! Go to Solution.
Hi @FZOU ,
Since the "LastDate" parameter's type is "Date", it is not needed to use #date() function. Try this:
...
{Cube.ApplyParameter, "[!V000001]",{LastDate}},
...
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@amitchandak Yes even when i change it to date it's same thing the #date function expects 3 arguments fro exp #date(arg1,arg2,arg3) but i have only one #date(LastDate,?,?)
Hi @FZOU ,
Since the "LastDate" parameter's type is "Date", it is not needed to use #date() function. Try this:
...
{Cube.ApplyParameter, "[!V000001]",{LastDate}},
...
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |