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!View all the Fabric Data Days sessions on demand. View schedule
I got error message with this fomular :
Solved! Go to Solution.
Hi @haidong ,
I think there may be spaces in the item_n column.
You can try the DAX below:
Column =
IF (
SEARCH ( "no", 'GI_Yield Feb20'[Item_N], 1, 0 ) > 0,
'GI_Yield Feb20'[Qty in unit of entry] / 2,
'GI_Yield Feb20'[Qty in unit of entry]
)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @haidong ,
I think there may be spaces in the item_n column.
You can try the DAX below:
Column =
IF (
SEARCH ( "no", 'GI_Yield Feb20'[Item_N], 1, 0 ) > 0,
'GI_Yield Feb20'[Qty in unit of entry] / 2,
'GI_Yield Feb20'[Qty in unit of entry]
)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try like this nad check
if('GI_Yield Feb20'[Item_N] & ""="no",'GI_Yield Feb20'[Qty in unit of entry]/2,'GI_Yield Feb20'[Qty in unit of entry]
Make sure data type changed here
Hi
i m trying to extract first X digits out of my ID column of data as
Hi @haidong
First of all heck it in Power Query Editor mode (if available)
or you can debug issue with ISTEXT() function
The statement
Column = ISTEXT('GI_Yield Feb20'[Item_N])
should return you true if the field is exactly Text
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!