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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
Asking for your help. I have a date column in my table named Project Completion Date. I created a calculated column to extract the year referencing the Project Completion Date column using this DAX.
I wanted to sort my column chart by calculated year. I tried sorting it using another calculated column with the Dax expression below. However, it says that there is a circular dependency error that's why it was not sorted. Appreciate your help. Thank you.
Solved! Go to Solution.
You just need to use year() function to extract the year, it will return the value with number type, then put the column to the x-axis, it will order automatically.
Project_Completion_Date(YYYY) =
YEAR ( FY25_PB_Master_Data[Project Completion Date] )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You just need to use year() function to extract the year, it will return the value with number type, then put the column to the x-axis, it will order automatically.
Project_Completion_Date(YYYY) =
YEAR ( FY25_PB_Master_Data[Project Completion Date] )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @third_hicana ,
create this as a custom column in power query
Proud to be a Super User! | |
I got this error when I created another column in the Custom Column in Power Query
yes , you can't copy paste the dax measure in power query since they're two different measures.
so check it here to know how to extract the year from the date column.
Proud to be a Super User! | |
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |