Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi , I created two calculated columns in DAX by functions Year , Month from date( It is direct query mode!!!!!). But Table where it was calculated is now too large.
Is there equivalent to calculate year, month, from date in Query editor in Direct query mode? An is it faster?
Do you have another idea how to make it faster? Maybe create table calendar in database.
I use thse columns as filter nad that is the problem, You can see empty square and that is exactly filter with calculated column year.
Hi @pstanek,
Assume you connect to SQL Server database, you can get Year and Month columns use T-SQL Query like below:
Also you can use the Date.Year() and Date.Month() function to create columns in Query Editor.
Best Regards,
Qiuyun Yu
Thanks for idea, we are going to fix by spark connection.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 38 | |
| 31 | |
| 27 |