Forum Discussion
Error cyclic dependency when sorting by calculated column.
zidek22 , I am not sure How you have used it.
But You can not sort a derived column on the base column
This how we create a column and its sort column
Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")
Month= FORMAT([Date],"mmm")
Month sort = FORMAT([Date],"mm")
Both coming from same column, Not A-> b-> C
Thank you for your reply amitchandak !
I have a base column and I made one derived column. Then I highlight the base column and click "sort by column" and choose the derived column. I've already done this in a different project where I needed to sort months chronologicaly and not alphabeticaly and it worked great. I'm probably just doing some small mistake. Anyway, thank you for your time!
- amitchandak6 years agoSuper User
zidek22 , I have given formulas in last update to sort the month on month order, not the text. Just adjust to your table and that will work
- zidek226 years agoFrequent Visitor
It worked! I added a second DateView column that I use to display the dates, then I created the DateSort column that is in a YYYYMM format and can be sorted. After that I sorted the DateView column by the DateSort column. Basicaly I never use the original Date column in my visual. Just writing this up for future reference if anyone needs it.
Thank you so much! Bye amitchandak