Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 53 | |
| 44 | |
| 42 | |
| 39 | |
| 34 |