Forum Discussion
Anonymous
3 years agoNot applicable
DAX Calculations
I am facing an issue with the comment below. Any help greatly appreaceated! "DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VA...
- 3 years ago
Hi,
I do not know how your datamodel looks like, but I assume that in your datamodel, storeID / CatID / MatID are all number format. Please try the below measure if it works.
SalesOnlineWatches = CALCULATE ( SUM ( TJLSalesData[Sales] ), FILTER ( TJLSalesData, TJLSalesData[StoreID] = 4 || TJLSalesData[CatID] = 1 || TJLSalesData[MatID] = 1 ) )
Jihwan_Kim
Super User
3 years agoHi,
I do not know how your datamodel looks like, but I assume that in your datamodel, storeID / CatID / MatID are all number format. Please try the below measure if it works.
SalesOnlineWatches =
CALCULATE (
SUM ( TJLSalesData[Sales] ),
FILTER (
TJLSalesData,
TJLSalesData[StoreID] = 4
|| TJLSalesData[CatID] = 1
|| TJLSalesData[MatID] = 1
)
)