Forum Discussion
third_hicana
2 years agoHelper IV
Sort Column Chart (Circular Dependency Error)
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 usi...
- Anonymous2 years ago
Hi third_hicana
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.
Idrissshatila
2 years agoSuper User
Hello third_hicana ,
create this as a custom column in power query
Project_Completion_Date(YYYY) =
FORMAT(FY25_PB_Master_Data[Project Completion Date],"yyyy")
and then the second column you're creating should work normlly
- third_hicana2 years agoHelper IV
- Idrissshatila2 years agoSuper User
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.