Convert =TREND to DAX?

ExcelToDAX

Board Regular
Joined
Feb 9, 2023
Messages
246
Office Version
  1. 365
Platform
  1. Windows
Is there a way to replace the TREND function in Excel to DAX? I want to forecast future trends. In Excel, I would put =TREND(C7:C30,D7:D30,D31) [assuming the dataset starts in B6.] I have tried creating my own Y = mx + b but I haven't been successful.



1675970260057.png





DateOSTCount
01/1/2021$ 79,169,780
1​
02/1/2021$ 79,231,903
2​
03/1/2021$ 79,103,251
3​
04/1/2021$ 78,989,302
4​
05/1/2021$ 79,876,175
5​
06/1/2021$ 80,829,112
6​
07/1/2021$ 80,923,194
7​
08/1/2021$ 81,616,249
8​
09/1/2021$ 82,078,721
9​
10/1/2021$ 82,866,655
10​
11/1/2021$ 82,763,429
11​
12/1/2021$ 82,226,724
12​
01/1/2022$ 81,631,608
13​
02/1/2022$ 81,310,098
14​
03/1/2022$ 81,640,133
15​
04/1/2022$ 81,509,193
16​
05/1/2022$ 80,104,898
17​
06/1/2022$ 81,084,133
18​
07/1/2022$ 81,514,120
19​
08/1/2022$ 81,502,443
20​
09/1/2022$ 82,064,248
21​
10/1/2022$ 84,051,577
22​
11/1/2022$ 84,061,034
23​
12/1/2022$ 85,485,643
24​
1/1/2023
25​
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top