cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

CONCATENATEX DAX sort by value does not work

I am currently a little desperate, because I have been sitting on the following problem for several days:

With the help of Power Query I load all excel files in a folder, change the data in Power Editor and load the data model into an Excel file.
Basically I have 3 columns: Project ID, customer name and project volume. I want to display them in a pivot table and sort them in descending order by project volume. The Project ID I have row field and the other two as values. 

 

Example.PNG


To display the customer name as text, I use the following DAX formula:

 

 

=CONCATENATEX(VALUES(_2020[Project/Client Name]);_2020[Project/Client Name];",";[Sum of Project Volume]; DESC)

 

 

Unfortunately, however, the table can no longer be sorted by project volume after I have displayed this measure as a value. Neither by sorting as expression in the formula, nor by the usual way.

 

Can anyone help me? I am very grateful for any advice!

Many greetings

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: CONCATENATEX DAX sort by value in the works

After trying for many hours to resolve this issue with almost all approaches, I found the trigger to solve the problem.

I accidentally restricted the characters in the Customer Name column by using the pull function in the Power Editor. Suddenly, it worked to filter the customer's name by project volume! I'm not sure if this is the reason for the problem or if the real reason is deeper. But it solves my problem.

I hope this post helps some great users out there! Have fun

View solution in original post

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: CONCATENATEX DAX sort by value does not work

I'm not sure why you couldn't sort it by Project Volume, that does not make sense to me.

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Helper I
Helper I

Re: CONCATENATEX DAX sort by value in the works

After trying for many hours to resolve this issue with almost all approaches, I found the trigger to solve the problem.

I accidentally restricted the characters in the Customer Name column by using the pull function in the Power Editor. Suddenly, it worked to filter the customer's name by project volume! I'm not sure if this is the reason for the problem or if the real reason is deeper. But it solves my problem.

I hope this post helps some great users out there! Have fun

View solution in original post

Highlighted
Super User IV
Super User IV

Re: CONCATENATEX DAX sort by value does not work

Ah, sounds like perhaps you broke a relationship or something? Thanks for the update!

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors