Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

filter and search

'TableName'[ColumnA] is of datatype Text with values such as
1422.02.02
200500
50100
6401.03.03
...

The below DAX does not show any values eventhough I see texts starting with the below values i.e. 6 or 7 or 8 or 9
CALCULATE(
[MeasureB],
LEFT('TableName'[ColumnA], 1) = "6"
|| LEFT('TableName'[ColumnA], 1) = "7"
|| LEFT('TableName'[ColumnA], 1) = "8"
|| LEFT('TableName'[ColumnA], 1) = "9"
)

The below DAX fails with error: cannot convert value '' of type Text to type Number

CALCULATE(
[MeasureB,
VALUE(LEFT('TableName'[ColumnA], 1)) >= 6
)

 

Any suggestions please?

9 Replies