This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 26 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 43 | |
| 28 | |
| 24 | |
| 22 |