End Goal: Create a scatter plot with actual data (coming from SSAS Cube) and a best fit line using basic least-squares regression.
At the present, my MDX looks like this:
SELECT NONEMPTY({[Measures].[Invoice Total]}) ON COLUMNS,
NONEMPTY( { [Billed Date].[Date].ALLMEMBERS}) ON ROWS
FROM
(
SELECT NONEMPTY(StrToMember(@StartDate,CONSTRAINED):StrToMember(@EndDate,CONSTRAINED)) ON COLUMNS,
NONEMPTY( STRTOSET(@Requestor)) ON ROWS
FROM [Task Billing]
WHERE STRTOSET(@Project)
)
WHERE STRTOSET(@Division)
As you can see, there are a large number of parameters used to filter which data should be included in the regression. I was thinking of using LinToPoint
but I cannot really figure it out, since I am so new to MDX.
I am TOTALLY open to workarounds.
Any ideas on how to accomplish this? Surely it is a common issue...