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 need your help with a DAX formula for a new column. I have some names on a column with the format "firstname.lastname" and some other values with the format "firstname lastname". I need a IF formula saying that if the field contains a "." in the string, then do something and if not do something else.
I've been trying but I couldn get a result. Can you please help on this?
Thanks!
Solved! Go to Solution.
HI @ezequiel
Please try this
Column =
IF(
FIND(
".",
'Table1'[Column1],
1,
0
)>0
, "Found"
, "Not Found"
)
hello @ezequiel,
I see you've found a solution already however, I decided to research an additional solution that I may need some day because it seems like it's only a matter of time before I need it.
Expanding on @Phil_Seamark's solution:
Column 2 =
IF (
FIND ( ".", Table4[Name], 1, 0 ) > 0,
PATHITEM ( SUBSTITUTE ( Table4[Name], ".", " " ), 1 ),
Table4[Name]
)Thanks @Phil_Seamark for presenting your solution!
Proud to be a Super User!
HI @ezequiel
Please try this
Column =
IF(
FIND(
".",
'Table1'[Column1],
1,
0
)>0
, "Found"
, "Not Found"
)
Hi Phil
thanks for the reply. I'm getting this error applying the formula
The syntax for '0' is incorrect.
Can you help me on this?
Thanks!
Ezequiel
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 |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 135 | |
| 110 | |
| 50 | |
| 31 | |
| 29 |