Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I am struggling to write a simple dax where I want to create a calculated column on the basis of database column
like I have a table
ID Product Calculated Column
1 Iphone 3 iphone
2 Iphone 4 iphone
3 Samsung s6 android
4 Samsung s5 android
I want to create dax query in calculated column whereever there is iphone3, iphone4 calculated column shows iphone and where there is samsung s6 and samsung s5 it shows android
Many Thanks
Jibran Ishtiaq
Solved! Go to Solution.
Please try with following DAX expression.
Calculated Column =
IF (
SEARCH ( "Iphone", Table1[Product],, 0 ) > 0,
"iphone",
IF ( SEARCH ( "Samsung", Table1[Product],, 0 ) > 0, "android" )
)
Best Regards,
Herbert
Please try with following DAX expression.
Calculated Column =
IF (
SEARCH ( "Iphone", Table1[Product],, 0 ) > 0,
"iphone",
IF ( SEARCH ( "Samsung", Table1[Product],, 0 ) > 0, "android" )
)
Best Regards,
Herbert
Vote for your favorite vizzies from the Power BI World Championship submissions!
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 |
|---|---|
| 65 | |
| 51 | |
| 42 | |
| 23 | |
| 21 |
| User | Count |
|---|---|
| 137 | |
| 116 | |
| 52 | |
| 37 | |
| 31 |