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

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.

Reply
Anonymous
Not applicable

Re-order values in a DAX statement

I have rows of data selected from a Slicer like Dec-16, Jan-17. The result from the DAX statement: TitleDateAncillary = CONCATENATEX( VALUES('Ancillary'[YearMonthName]), 'Ancillary'[YearMonthName], ", ") gives me Jan-17 , Dec16. I need to reorder them Chronologically.

 

Thanks, Mark

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi u156531,

 

Simplely sort data in query editor or report view can't achieve your requirement, you can add a sort optional param in CONCATENATEX() function like below:

 

CONCATENATEX(Table, Expression, [Delimiter], [OrderBy_Expression1], [Order1], ...)

 

Reference thread: https://community.powerbi.com/t5/Desktop/I-want-to-quot-Order-by-quot-before-using-CONCATENATEX-trie....

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi u156531,

 

Simplely sort data in query editor or report view can't achieve your requirement, you can add a sort optional param in CONCATENATEX() function like below:

 

CONCATENATEX(Table, Expression, [Delimiter], [OrderBy_Expression1], [Order1], ...)

 

Reference thread: https://community.powerbi.com/t5/Desktop/I-want-to-quot-Order-by-quot-before-using-CONCATENATEX-trie....

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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