Forum Discussion
Automatically Split One Table into Smaller Tables based on a row value (Name)
While it is likely possible to do what you are asking, you probably shouldn't. Instead, please share the measures you have tried that are not performant and/or further describe your data model. 15M rows is not that much for Power BI but it is not hard to get poor performance if your DAX doesn't follow best practices.
Pat
Hey Pat,
Below is the formula, currently it's just on the table, I was wondering if I did it at the query level that would help. If it helps when I limit the table to about 16-20k rows the formula works no problem.
Data set is about 15mm rows and 26 columns.
Previous Action = CALCULATE(MAX('Test'[Date]),
(Filter('Test',EARLIER('Test'[ID])='Test'[ID] &&
EARLIER('Test'[Date])>'Test'[Date])
- spider_Monkey3 years agoHelper I
Do you know of a way to write that formula to make a custom column in the query?
- ppm13 years agoSolution Sage
Please try this column expression instead.
Previous Action = VAR thisdate = 'Test'[Date] RETURN CALCULATE ( MAX ( 'Test'[Date] ), ALLEXCEPT ( 'Test', 'Test'[ID] ), 'Test'[Date] < thisdate )Pat
- spider_Monkey3 years agoHelper I
Morning ppm1 ,
No luck it tells me not enough memory to complete the operation. I tried a version of that formula first and got the same error.
Is there anyway to write this in Mquery?