Forum Discussion

sean_cochran's avatar
sean_cochran
Resolver I
2 years ago
Solved

Unable to reference LINESTX table output using SELECTCOLUMN

UPDATE: sample file here. Look at the DAX Query View. I'm developing a calculation item, but using the DAX Query View for testing purposes.

 

I have stored the output of a LINESTX function (which is a table) in a variable:

 

 

// Calculate regression line based on measureTable
VAR line = LINESTX( measureTable, [Y], [X], TRUE)

 

 

This outputs a table of values as expected:

 

However, when I try to extract specific values from that table using "SELECTCOLUMNS", the columns [Slope1] and [Intercept] are not recognized:

Does anyone have any idea what I might be doing wrong?

 

  • DataInsights's avatar
    DataInsights
    2 years ago

    sean_cochran,

     

    It appears there is a bug in the DAX editor. When I view the calculation item in Tabular Editor, it doesn't contain an error. See if you can use the calculation item successfully.

     

     

5 Replies

      • DataInsights's avatar
        DataInsights
        Super User

        sean_cochran,

         

        It appears there is a bug in the DAX editor. When I view the calculation item in Tabular Editor, it doesn't contain an error. See if you can use the calculation item successfully.