Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
How do I add another column that will bring back a value of "1" if the ID column contains text.
Solved! Go to Solution.
@brockry1 Here is one way. PBIX attached below signature.
Column =
VAR __Len = LEN( [Id] )
VAR __Table =
ADDCOLUMNS(
ADDCOLUMNS(
ADDCOLUMNS(
GENERATESERIES( 1, __Len, 1 ),
"__Char", MID( [Id], [Value], 1 )
),
"__Unicode", UNICODE( [__Char] )
),
"__IsText",
IF(
( [__Unicode] >= 65 && [__Unicode] <= 90 ) ||
( [__Unicode] >= 97 && [__Unicode] <= 122 ),
1, 0
)
)
VAR __Result = IF( COUNTROWS( FILTER( __Table, [__IsText] = 1 ) ) > 0, 1, 0 )
RETURN
__Result
@brockry1 Here is one way. PBIX attached below signature.
Column =
VAR __Len = LEN( [Id] )
VAR __Table =
ADDCOLUMNS(
ADDCOLUMNS(
ADDCOLUMNS(
GENERATESERIES( 1, __Len, 1 ),
"__Char", MID( [Id], [Value], 1 )
),
"__Unicode", UNICODE( [__Char] )
),
"__IsText",
IF(
( [__Unicode] >= 65 && [__Unicode] <= 90 ) ||
( [__Unicode] >= 97 && [__Unicode] <= 122 ),
1, 0
)
)
VAR __Result = IF( COUNTROWS( FILTER( __Table, [__IsText] = 1 ) ) > 0, 1, 0 )
RETURN
__Result
Not sure if I got your question.
Add a calculated column :
INT( NOT ISBLANK(Tablename[ID]) && ISTEXT(Tablename[ID]) )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |