Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am confused how the LINESTX function works within a group. The first screen shot is of a matrix showing that there is only 1 k1 record for any given l0 group. The second screen shot is of a matrix where I am trying to display the LINESTX column of R2 (DAX formula below). The second matrix only has l0 as part of the row group and therefore should be providing the LINESTX function a unique value for the LINESTX x-value parameter of [k1].
r2_fk01 =
var l = LINESTX('fk01 mx',[max pct],[k1])
return SELECTCOLUMNS(l,[CoefficientOfDetermination])
Solved! Go to Solution.
Hi @jshumaker
please try
r2_fk01 =
VAR l =
LINESTX ( 'fk01 mx', [max pct], [k1] )
RETURN
AVERAGEX ( l, [CoefficientOfDetermination] )
Hi @jshumaker
please try
r2_fk01 =
VAR l =
LINESTX ( 'fk01 mx', [max pct], [k1] )
RETURN
AVERAGEX ( l, [CoefficientOfDetermination] )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 8 | |
| 8 | |
| 8 |