Forum Discussion
Circular dependency when sorting by column
- 5 years ago
AdamRobC , As you are using month name in creating the sort column you can not use that as a sort column
Create a column
Month Name 1 =[Month Name]
MaxRelativeMonth = CALCULATE(MAX('Calendar'[RelativeMonth]),FILTER('Calendar','Calendar'[Monthly Reporting Period]="TY" && 'Calendar'[Month Name]='Month Ordering'[Month Name]))
Sort Month Name 1 on the new sort column and use that is the visual. Do rename as per need
AdamRobC , As you are using month name in creating the sort column you can not use that as a sort column
Create a column
Month Name 1 =[Month Name]
MaxRelativeMonth = CALCULATE(MAX('Calendar'[RelativeMonth]),FILTER('Calendar','Calendar'[Monthly Reporting Period]="TY" && 'Calendar'[Month Name]='Month Ordering'[Month Name]))
Sort Month Name 1 on the new sort column and use that is the visual. Do rename as per need
amitchandak thanks, that worked 🙂