Forum Discussion
DAX expression error
Can somebody please help with below mentioned error?
- Anonymous6 years ago
I can't see the data and don't know your data but try without the filter like:
CALCULATE(COUNT([DocumentID]),[ownsalestaxid]="")
Let me know the outcome.
BR,
DR
12 Replies
- AnonymousNot applicable
One of the columns used is a number format, and others are text. As stated in the error you can use the value or format function to make it to text in this expression.
- AnonymousNot applicable
Hi Anonymous,
That would be your comparisons with "". For what I can see (can't know your fields types) but you have to substitute "" by >0 or blank() when you compare numeric fields and leave the "" for the text.
Let me know if it worked and if so mark as solution.
BR,
DR
- AnonymousNot applicable
This is still now working. Data type of ownsalestxid is text.
- AnonymousNot applicable
and I am creating a measure here.
- maderFrequent Visitor
Hi.
Verify if all of the columns you are comparing to "" are with data type Text.
If you do not wish to change data type then the logic of comparing to blank should be changed.
Consider using ISBLANK(<value>)