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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
NDYKES
Frequent Visitor

error in sort by column, area chart formatting, stacked chart formatting

I have a large dataset where I have around 100 different variables where I want to visualise the top X (by count) and also sort the area chart so that the highest value is at the bottom. There doesn't seem to be an easy way to do this. Especially because of how many potential options there could be and I want it dynamic for filtering.
 
My methodolody was
 
TABLE1
Ref | Variable a | variable b | variable a +b | rest of table
 
I duplicated this table and made a group_by:
 
TABLE2
variable a+b | count
 
which I joined back to the original TABLE1 giving us
 
Ref | Variable a | variable b | variable a+b |  rest of table | count
 
At this point I tried to sort variable a+b by count  and despite there only beng 1 count value for each variable a+b I got and error saying:
 
We cant sort the "variable a+b" column by "count". There can't be more than one value in "count" for the same value in "variable a+b".
 
I had already checked this and the objection in the error isn't the case.
 
Can anybody please shed some light / workaround?
 
Thanks!

1 ACCEPTED SOLUTION

Thanks, none of them worked for my issue sadly but I was able to rebuild the model for a workaround

View solution in original post

2 REPLIES 2
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @NDYKES 

Sample data and expected output will be helpful to provide an accurate solution.If you need further help,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.It would be better if you can upload the .pbix file to OneDrive and post the link here.

Below are some reference for you:

https://community.powerbi.com/t5/Desktop/Help-sorting-column-order/m-p/741699#M357591

https://community.powerbi.com/t5/Desktop/How-to-sort-Arrange-Bar-chart/m-p/648236#M310803

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, none of them worked for my issue sadly but I was able to rebuild the model for a workaround

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.