Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
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.
Proud to be a Super User!
Try adding the name of the new column:
VAR slope = SELECTCOLUMNS ( line, "Slope1", [Slope1] )
Proud to be a Super User!
Same result:
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.
Proud to be a Super User!
The calculation item worked. I'm very surprised - normally I'm the one at fault. Is there an official process to report bugs like this?
Glad to hear it works. You can report the issue at the link below:
https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 124 | |
| 116 | |
| 77 | |
| 54 |