Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have been attempting to parameterize the fiscal year month start, but have had no luck. I am building a calendar table that determines the fiscal year as below. What I want to do is in 'VAR FiscalStartMonth = 8', add a parameter value in place of 8 so the use can select the fiscal start month. This does not seem to work as I get the following error "The optional argument of CALENDARAUTO function must be an integer between 1 and 12 inclusive."
So the calendarauto function is not accepting the selected parameter value (1-12) as an integer. Any thoughts or help on this would be greatly appreciated! Thanks.
Solved! Go to Solution.
Hi @thrillhouse
Thanks for reaching out to us.
>>I get the following error "The optional argument of CALENDARAUTO function must be an integer between 1 and 12 inclusive."
Do not use addcolumns() to create a table. Addcolumns() will add calculated columns to the given table or table expression. ADDCOLUMNS function (DAX) - DAX | Microsoft Docs
Just try to use calendarauto() to create a table firstly, then add other columns to it
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @thrillhouse
Thanks for reaching out to us.
>>I get the following error "The optional argument of CALENDARAUTO function must be an integer between 1 and 12 inclusive."
Do not use addcolumns() to create a table. Addcolumns() will add calculated columns to the given table or table expression. ADDCOLUMNS function (DAX) - DAX | Microsoft Docs
Just try to use calendarauto() to create a table firstly, then add other columns to it
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
87 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |