Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi, in below table, I would like to have a category column with below conditions:
1. If No. is same, Type is same, then outcome follow Type string
2. If No. is same, Type is different, then outcome will be "Mix"
| No. | Type | Desired Outcome |
| 010724120026 | EUD | EUD |
| 010724120026 | EUD | EUD |
| 010724120026 | EUD | EUD |
| 010724230815 | Non-EUD | Non-EUD |
| 010724230815 | Non-EUD | Non-EUD |
| 010724230815 | Non-EUD | Non-EUD |
| 250624070814 | EUD | Mix |
| 250624070814 | Non-EUD | Mix |
| 250624070814 | EUD | Mix |
Thanks.
Regards,
LC
Solved! Go to Solution.
@Tan_LC , You can create a calculated column for this
Category =
VAR CurrentNo = 'YourTableName'[No]
VAR CurrentType = 'YourTableName'[Type]
VAR TypeCount = CALCULATE(
COUNTROWS('YourTableName'),
ALLEXCEPT('YourTableName', 'YourTableName'[No]),
'YourTableName'[Type] <> CurrentType
)
RETURN
IF(TypeCount > 0, "Mix", CurrentType)
Proud to be a Super User! |
|
@Tan_LC , You can create a calculated column for this
Category =
VAR CurrentNo = 'YourTableName'[No]
VAR CurrentType = 'YourTableName'[Type]
VAR TypeCount = CALCULATE(
COUNTROWS('YourTableName'),
ALLEXCEPT('YourTableName', 'YourTableName'[No]),
'YourTableName'[Type] <> CurrentType
)
RETURN
IF(TypeCount > 0, "Mix", CurrentType)
Proud to be a Super User! |
|
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 9 | |
| 7 | |
| 5 |