Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Linear regression calculation

Hello,

Is there a way to calculate with DAX the linear regression of this:

 

SitesEntity codeResult MoistureResult aw
RCR53698,20,56
RGU52857,40,51
RGU50717,80,48
RFT54596,50,5
RCR536980,54
RGU50717,60,46
RGU52857,90,55
RCR53697,70,53

 

x = Moisture results

y = aw results

 

And for each site/formula, I will use the linear regression calculation to estimate my aw result when moisture = 9,5 % or 10,5 %.

Thanks for your help,

Hervé