Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have created a Linestx dax as -
Solved! Go to Solution.
@Ethanhunt123 , Try using below
TempTable =
VAR line =
LINESTX (
ALLSELECTED('Sales order line fact'[Order month]), -- This respects the slicer
[Total revenue trend],
'Sales order line fact'[Order month]
)
VAR slope = SELECTCOLUMNS(line, [Slope1])
VAR intercept = SELECTCOLUMNS(line, [Intercept])
RETURN
ADDCOLUMNS(
SUMMARIZE(
'Sales order line fact',
'Sales order line fact'[Order month]
),
"Slope", slope,
"Intercept", intercept,
"Revenue Trend", 'Sales order line fact'[Order month] * slope + intercept
)
Proud to be a Super User! |
|
@Ethanhunt123 , Try using below
TempTable =
VAR line =
LINESTX (
ALLSELECTED('Sales order line fact'[Order month]), -- This respects the slicer
[Total revenue trend],
'Sales order line fact'[Order month]
)
VAR slope = SELECTCOLUMNS(line, [Slope1])
VAR intercept = SELECTCOLUMNS(line, [Intercept])
RETURN
ADDCOLUMNS(
SUMMARIZE(
'Sales order line fact',
'Sales order line fact'[Order month]
),
"Slope", slope,
"Intercept", intercept,
"Revenue Trend", 'Sales order line fact'[Order month] * slope + intercept
)
Proud to be a Super User! |
|
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |