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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 39 | |
| 38 | |
| 21 |
| User | Count |
|---|---|
| 176 | |
| 131 | |
| 118 | |
| 82 | |
| 54 |