Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi @Anonymous ,
If you only have the [Employe] column and the [Product] column, it's impossible to sort the [Product] column.
But if you have a [Index] column like this, you can achieve it:
Index =
IF(
[Employe] = "A",
SWITCH(
[Product],
"PQR", 1,
"STR", 2,
"ABC", 3
),
IF(
[Employe] = "B",
SWITCH(
[Product],
"STR", 1,
"ABC", 2,
"PQR", 3
)
)
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create a new measure using concatenatex
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
measure = concatenatex(table,table[product])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
@amitchandak Thanks for your response. Can you please brief. After use concatenatex function, then how I can get my ouput,
Should I use SortByColumn.. Or how I can use this function
Kind Regards
Ashwani
Hi @Anonymous ,
"Is there any way to sort wuth DAX function. "
This function does exist, but you want to sort the text columns, which is not possible.
"Or is there any way to achieve the same "
Only add [Index] column manually.
Add the [Index] column at the end, and then shrink the table to cover it😂.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was assuming you need a comma-separated list. So this will give you. You can show it on Card, table.
Once you filter you will only get for that employee. If you need value row-wise, then filter and table display will do.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 42 | |
| 30 | |
| 24 |