Forum Discussion
Anonymous
2 years agoNot applicable
Customized Column // Transform product names into categories
Hi I kindly ask for support regarding the below problem in Power BI. I have a column which lists the products sold in a specific project in one row like displayed below (Products combined). I ...
- Anonymous2 years ago
Hi Anonymous ,
Try formula like below:
Conditional = IF ( Data[Products combined] = BLANK (), BLANK (), IF ( Data[Products combined] = "Product A,Product B", "Project A including Project B", IF ( CONTAINSSTRING ( Data[Products combined], "X" ) || CONTAINSSTRING ( Data[Products combined], "Y" ) || CONTAINSSTRING ( Data[Products combined], "F" ), Data[Products combined], IF ( ( LEN ( Data[Products combined] ) - LEN ( SUBSTITUTE ( Data[Products combined], ",", "" ) ) ) >= 1, "Solution Project", Data[Products combined] ) ) ) )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi Anonymous ,
Try formula like below:
Conditional =
IF (
Data[Products combined] = BLANK (),
BLANK (),
IF (
Data[Products combined] = "Product A,Product B",
"Project A including Project B",
IF (
CONTAINSSTRING ( Data[Products combined], "X" )
|| CONTAINSSTRING ( Data[Products combined], "Y" )
|| CONTAINSSTRING ( Data[Products combined], "F" ),
Data[Products combined],
IF (
(
LEN ( Data[Products combined] )
- LEN ( SUBSTITUTE ( Data[Products combined], ",", "" ) )
) >= 1,
"Solution Project",
Data[Products combined]
)
)
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.