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
I want to use this function to plot a chart for weekly sales and getting this error. I dont know how I can use Power Query as suggested here or whether it is a right answer.
Can someone point me to right place?
Thank You,
Vishal
Solved! Go to Solution.
Hi @vopatel,
To return weeknum values for dates in Query Editor, we can create a custom column below:
But Please note, as it's DirectQuery mode, it's not able to apply this change after add this custom column, you can see below message when you apply query:
In your scenario, I would suggest you use T-SQL query to return weeknum values:
Best Regards,
Qiuyun Yu
Hi @vopatel,
To return weeknum values for dates in Query Editor, we can create a custom column below:
But Please note, as it's DirectQuery mode, it's not able to apply this change after add this custom column, you can see below message when you apply query:
In your scenario, I would suggest you use T-SQL query to return weeknum values:
Best Regards,
Qiuyun Yu
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!