Join 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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone
I have pasted the code below to get a data table for a calendar in my power bi workbook. The code is working correctly but the range of dates I'm getting is 2015 to 2017. Where am I going to have to input the right range in this code? Much appreciated!
Solved! Go to Solution.
Solved: I had to change the VAR CY = element from a 2 to a 20 to get to year 2023
Hi @powerbienthuzi ,
Glad to hear that your issue has been resolved by yourself !
Could you please Accept your post as the solution to make the thread closed? Thanks in advanced😀
Best Regards,
Eyelyn Qin
Solved: I had to change the VAR CY = element from a 2 to a 20 to get to year 2023
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |