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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sraj
Responsive Resident
Responsive Resident

Contatenated column to sort in descending order

Hi,
Help!
How do I turn this contatenated column to sort in descending order?
Year = CONCATENATE('settl'[_year]'sched'[_yr])
 
Thank you!
1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @sraj 

According to your description, you want to concate 2 columns by DESC order .
If this , you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1672737608461.png

(2)We can click "New Column" and enter :

Column = CONCATENATEX({'Table'[Column1],'Table'[Column2]} , [Value],"",[Value],DESC)

(3)Then we can meet your need:

vyueyunzhmsft_1-1672737653239.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

View solution in original post

6 REPLIES 6
v-yueyunzh-msft
Community Support
Community Support

Hi , @sraj 

According to your description, you want to concate 2 columns by DESC order .
If this , you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1672737608461.png

(2)We can click "New Column" and enter :

Column = CONCATENATEX({'Table'[Column1],'Table'[Column2]} , [Value],"",[Value],DESC)

(3)Then we can meet your need:

vyueyunzhmsft_1-1672737653239.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

sraj
Responsive Resident
Responsive Resident

It didnt work, I received this "A circular Dependency was detected" error.  

Unfortunately, circular dependencies are a bit difficult to diagnose without seeing your specific model. I don't think what I suggested should have circular dependency issues in most cases (it certainly didn't in my testing).

sraj
Responsive Resident
Responsive Resident

Hi @AlexisOlson - thanks for responding, what do I place in the [Value] option?  

Leave it as is. That's the default column name for a table construction using "{ }".

AlexisOlson
Super User
Super User

CONCATENATEX allows you to specify sorting:

CONCATENATEX ( { 'settl'[_year], 'sched'[_yr] }, [Value], ", ", [Value], DESC )

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors