Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I would like to sort my month names by a calculated column based on the previous 12 month period. I have got the values populating in a suitable way using relative months to the current month.
However this keeps resulting in circular dependency errors. Any help?
Thanks,
Adam
Solved! Go to Solution.
@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
Ok, but you are using the Calendar table in the calculation as well.
Can you create that sorting column in Power query instead? That should avoid the issue.
Otherwise I'd need to see the calendar table its columns) and the its relationship with 'Month ordering'. If you can share the pbix, much better
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @AdamRobC
When do you get the circular dependency error, when creating the calc column or when trying to "Sort by"?
Can you show the full table (columns)?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@AlB The error occurs when trying to sort Month Name by MaxRelativeMonth. That is the entire table, there are only 3 columns.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |