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.
Hello all.
I have the following problem: My dataset has a bunch of rows that correspond to each product ordered by a customer, and each product has a family type associated:
NumOrder SKU Family type
1 1234 Baby
1 1245 Kid
This example represents an order of 2 units, with 2 different family types. The family types that I have are: Baby, Kid, Woman, Men, Men&Acessories; Woman&Acessories, Shoes.
I want to create a calculated column that if an order has only Baby, display "baby", and so on. But if an order has at least one product that is baby and kid, displays "Baby_Kid" and so on. For all combinations.
Can you help me?
Thank you!
Solved! Go to Solution.
@Anonymous
I did not fully understand but this should be close:
Column =
CONCATENATEX(
CALCULATETABLE( VALUES(Table4[Family Type]) , ALLEXCEPT(Table4,Table4[Number])),
Table4[Family Type],"|"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
I did not fully understand but this should be close:
Column =
CONCATENATEX(
CALCULATETABLE( VALUES(Table4[Family Type]) , ALLEXCEPT(Table4,Table4[Number])),
Table4[Family Type],"|"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you for your reply.
It is almost this. The problem is that Child| Baby and Baby| Child is the same category but I have two different categories.
@Anonymous
Then you need to provide a propper example and show all possible scenarios.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
46 | |
31 | |
30 | |
18 | |
18 |