Forum Discussion

JoseH16's avatar
JoseH16
New Member
2 years ago

DAX Not Recognizing Column Names from Table Stored in Variable

Hello,

I am experiencing an issue where DAX is not recognizing the column names from a table I have stored in a variable, and I am hoping someone might be able to assist.

Problem Description:

When referring to the columns of my table stored in the variable named "Arreglo," DAX throws an error saying "Cannot find name '[Monto]' or '[Año]'," and upon pressing enter, another message appears stating "Cannot find table 'Arreglo'."


The problem occurs in the following code segment:
VAR Monto =
CALCULATE( SUMX( Arreglo, Arreglo[Monto] ), FILTER( Arreglo, Arreglo[Año] = [Año actual] && Arreglo[Mes] = Mes ) )

DAX Code :

 

Any guidance or assistance on this matter would be greatly appreciated. Thank you in advance!

1 Reply

  • Hi, 

    I think the columns that you want to use inside the measure is virtually created in VAR above.

    Please try using the column name without the table name.