The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would be happy if you could help me.
Trying to sort "Month Name" column by using Concatanatex function. But it s not sorting in a correct order.
Best regards
Solved! Go to Solution.
hi @kivancc94 ,
CONCATENATEX has an argument for sorting. First create a Month Sort measure - based on test, the measure has to be created outside CONCATENATEX otherwise the values will not be in the expected order.
Month Sort Measure =
SELECTEDVALUE ( Dates[Month Number] )
or
Month Sort Measure =
MONTH ( Dates[Date] )
Then update your formula similar to below
MONTHS =
CONCATENATEX (
VALUES ( Dates[Month Name] ),
Dates[Month Name],
UNICHAR ( 10 ),
[Month Sort Measure], ASC
)
hi @kivancc94 ,
CONCATENATEX has an argument for sorting. First create a Month Sort measure - based on test, the measure has to be created outside CONCATENATEX otherwise the values will not be in the expected order.
Month Sort Measure =
SELECTEDVALUE ( Dates[Month Number] )
or
Month Sort Measure =
MONTH ( Dates[Date] )
Then update your formula similar to below
MONTHS =
CONCATENATEX (
VALUES ( Dates[Month Name] ),
Dates[Month Name],
UNICHAR ( 10 ),
[Month Sort Measure], ASC
)
Hi @kivancc94,
I'd like to suggest you refer to the following link to create a custom table with raw field value and index field.
After you finish setting 'sort by column' property with index field value and link to the raw table field. You can use the new table field on slicer to filter records and keep with specific sorting orders.
Regards,
Xiaoxin Sheng
User | Count |
---|---|
80 | |
73 | |
40 | |
30 | |
28 |
User | Count |
---|---|
107 | |
96 | |
55 | |
47 | |
47 |