Forum Discussion
tryan
9 years agoFrequent Visitor
DAX if statement syntax error
I am trying to write a simple if statement in power pivot using DAX. I wrote many if statement that return either a 1 or a 0 depending on whether or not the logical statement is true or false. Howe...
- 9 years ago
Is this a calculated column or calculated measure?
If it is a calculated column, what is the datatype set to?
Phil_Seamark
Microsoft Employee
9 years agoIs this a calculated column or calculated measure?
If it is a calculated column, what is the datatype set to?
tryan
9 years agoFrequent Visitor
Phil,
Thanks for your quick reply. That was the issue. I was adding a calculated column to a dataset, and it was defaulting to a number format for some reason when it needed to be text. When I reopened the file this morning, for some reason I didn't need to even reformat the calculated column. When I wrote the formula it automatically sensed the column format needed to be text. But here is are the steps for reformatting a column if anyone else views this thread: