Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Error DAX comparison operations do not support comparing values of type Text with values of type Num

Hi all,

 

Im new here and I'm having this issue DAX comparison operations do not support comparing values of type Text with values of type Number. This is the DAX I'm trying to use:

LY_MARS: = CALCULATE([Venta],FILTER(ALL('DATE'),'DATE'[Periodo]<=MAX('DATE'[Periodo]) && 'DATE'[AÑO]=MAX('DATE'[AÑO])-1))
This basically shows the previouse value of a filtered year as shown below:

Values 

Sum of Value2,121,200
LY_MARS10,524,293

Thanks in advance,

Julian C.