Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
aebbage
New Member

custom sort legend changing data

Hi,

 

I have created a custom sort column for my data to sort the legend on my graph, however when I sort by the new column, it changes the data.

 

Relationship:

aebbage_0-1717382846701.png

 

BEFORE custom sort

aebbage_1-1717382950138.png

 

Graph AFTER custom sort.

aebbage_2-1717383663044.png

 

It seems to be changing the data, rather than sorting it.

I've never had this issue before. I have used this method many times. The only difference to previous times using this method, is that I am filtering the questions to display and filtering on year/term as all data is in the same back table now.

 

Thanks

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @aebbage 
Something with your relationship is wrong + The sort column should have unique values and in the picture you added there are 2 zeros.

I created the pbix with the logic like yours, you can download it and follow my steps.

Ritaf1983_0-1717385485468.png

 

Ritaf1983_1-1717385531501.pngRitaf1983_2-1717385615535.png

Ritaf1983_4-1717385732727.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @aebbage 
Something with your relationship is wrong + The sort column should have unique values and in the picture you added there are 2 zeros.

I created the pbix with the logic like yours, you can download it and follow my steps.

Ritaf1983_0-1717385485468.png

 

Ritaf1983_1-1717385531501.pngRitaf1983_2-1717385615535.png

Ritaf1983_4-1717385732727.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors