Forum Discussion
Another DAXComparison Operations Do Not Support Comparing Values Of Type Integer With Type Text
- 3 years ago
I made a lot more progress. It seems that the value 1000 is a string, not a number.
This
ReportValue (DAX) = Switch(TRUE(), FORMAT(GL_BALANCE_MC[Cost_Center],"Standard") = FORMAT(1000,"Standard"), "Cash")
gets me past the error. Hopefully it helps someone
- 3 years ago
Sorry for the late reply, = the issue was that "1000" needed to be a string for whatever reason.
hi t-irp
not sure about your use case. try like:
ReportValue (DAX) =
Switch( TRUE(),NOT(ISBLANK(VALUE(GL_BALANCE_MC[Cost_Center]))) , "Cash")
or why you want to compare with 1000?
Hi
Longer term, I need to create a report that shows this, but for 54 rows.
......
| Inventory | 1300 | 1399 | Some number |
| Prepaids | 1400 | 1439 | Some number |
| Other Current Assets | 1440 | 1499 | Some number |
| Total Current Assets | 1000 | 1499 | Some number |
.......
Note that "Total Current Assets" includes a collection of GL_codes that were already chosen ealier for other groupings. In my mind, I think I should have something like;
| Cash |
| AR - Trade |
| AR - Other |
| Costs in Excess of Billings |
| Intercompany Assets |
50 more....