- Deprecated function: Use of "static" in callables is deprecated in Drupal\user\Entity\Role::postLoad() (line 172 of core/modules/user/src/Entity/Role.php).
Drupal\user\Entity\Role::postLoad(Object, Array) (Line: 423)
Drupal\Core\Entity\EntityStorageBase->postLoad(Array) (Line: 353)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 16)
Drupal\user\RoleStorage->isPermissionInRoles('access site in maintenance mode', Array) (Line: 112)
Drupal\Core\Session\UserSession->hasPermission('access site in maintenance mode') (Line: 105)
Drupal\Core\Session\AccountProxy->hasPermission('access site in maintenance mode') (Line: 83)
Drupal\redirect\RedirectChecker->canRedirect(Object) (Line: 120)
Drupal\redirect\EventSubscriber\RedirectRequestSubscriber->onKernelRequestCheckRedirect(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '643879d1-7e69-4b04-8d0f-fd4078fc0f52') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '643879d1-7e69-4b04-8d0f-fd4078fc0f52') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '643879d1-7e69-4b04-8d0f-fd4078fc0f52') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '643879d1-7e69-4b04-8d0f-fd4078fc0f52') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '643879d1-7e69-4b04-8d0f-fd4078fc0f52') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'c1bd38da-e19d-41d8-8d27-a4cd2692cd6e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'c1bd38da-e19d-41d8-8d27-a4cd2692cd6e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'c1bd38da-e19d-41d8-8d27-a4cd2692cd6e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'c1bd38da-e19d-41d8-8d27-a4cd2692cd6e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'c1bd38da-e19d-41d8-8d27-a4cd2692cd6e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '481b4427-19ca-4364-83e9-efc6156a3b1e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '481b4427-19ca-4364-83e9-efc6156a3b1e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '481b4427-19ca-4364-83e9-efc6156a3b1e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '481b4427-19ca-4364-83e9-efc6156a3b1e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '481b4427-19ca-4364-83e9-efc6156a3b1e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '98e8fbc9-cce1-4532-b967-2ecd82e27cb5') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '98e8fbc9-cce1-4532-b967-2ecd82e27cb5') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '98e8fbc9-cce1-4532-b967-2ecd82e27cb5') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '98e8fbc9-cce1-4532-b967-2ecd82e27cb5') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '98e8fbc9-cce1-4532-b967-2ecd82e27cb5') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'db5a91ac-35e1-4bb4-9f87-51b5d794a1cc') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'db5a91ac-35e1-4bb4-9f87-51b5d794a1cc') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'db5a91ac-35e1-4bb4-9f87-51b5d794a1cc') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'db5a91ac-35e1-4bb4-9f87-51b5d794a1cc') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'db5a91ac-35e1-4bb4-9f87-51b5d794a1cc') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'f5e572c8-a5b9-4c30-9fac-249c879ebd7e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'f5e572c8-a5b9-4c30-9fac-249c879ebd7e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'f5e572c8-a5b9-4c30-9fac-249c879ebd7e') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'f5e572c8-a5b9-4c30-9fac-249c879ebd7e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', 'f5e572c8-a5b9-4c30-9fac-249c879ebd7e') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('To show how this function works, we start from the following data table ("<em>Data</em>"):
Next, we create an aggregated table using the <a href="/en/dax/function/summarize">SUMMARIZE</a> function, using the <em>Category</em> field as the grouping field:
Summarized table =
SUMMARIZE(
Data,
Data[Category],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
As you would expect, the fields created in this table (<em>Sum</em>, <em>Max,</em> and <em>Avg</em>) are calculated on the records of each of the categories.
Now we create a similar table, but specifying that the <em>Category</em> field is a "rollup" field:
Summarized table Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that a new line has been generated showing subtotals for all groups of grouping fields specified in the SUMMARIZE function except those included in the ROLLUP function (that is, for no group of fields -because the only field referenced in the SUMMARIZE function is the one included in the ROLLUP function-, which means that in the new line subtotals are calculated involving all the data from the original table).
Let's now create an aggregate table using both <em>Category</em> and <em>Subcategory</em> as aggregation fields:
Summarized table Cat_Subcat =
SUMMARIZE(
Data,
Data[Category],
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
If we specify in this table that the <em>Category</em> field is a "rollup" field, the result is the following:
Summarized table Subcat_Rollup_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Category]),
Data[Subcategory],
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
We see that the resulting aggregated table, in addition to the <em>Sum</em>, <em>Max</em> and <em>Avg</em> fields corresponding to the different groups of records resulting from combining the values of the <em>Category</em> and <em>Subcategory</em> fields, includes 6 new lines, with the subtotals corresponding to the groups created (combinations of the <em>Category</em> and <em>Subcategory</em> fields) excluding the <em>Category</em> field that has been included as an argument in the ROLLUP function, that is, with subtotals of the groups formed only by the <em>Subcategory</em> field. As this field can take 6 values, 6 new rows have been added.
If, on the other hand, we include the <em>Subcategory</em> field as an argument of the ROLLUP function:
Summarized table Cat_Rollup_Subcat =
SUMMARIZE(
Data,
Data[Category],
ROLLUP(Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...we would see that, on this occasion, 3 new rows have been added to the aggregation table, rows corresponding to the three values that the <em>Category</em> field takes, subset of the fields involved in the SUMMARIZE function that are not included in the ROLLUP function.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '32131dd3-bf53-4660-ae70-f5b4d6c1039c') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '32131dd3-bf53-4660-ae70-f5b4d6c1039c') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '32131dd3-bf53-4660-ae70-f5b4d6c1039c') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '32131dd3-bf53-4660-ae70-f5b4d6c1039c') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '32131dd3-bf53-4660-ae70-f5b4d6c1039c') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '77c7884c-561f-4921-9df3-141f20b6f0ec') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '77c7884c-561f-4921-9df3-141f20b6f0ec') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('file_load_multiple') (Line: 696)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->buildQuery(Array) (Line: 422)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 393)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 346)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 641)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '77c7884c-561f-4921-9df3-141f20b6f0ec') (Line: 95)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterMetaData is deprecated in Drupal\Core\Database\Query\Select->addMetaData() (line 178 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addMetaData('entity_type', 'file') (Line: 115)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '77c7884c-561f-4921-9df3-141f20b6f0ec') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$alterTags is deprecated in Drupal\Core\Database\Query\Select->addTag() (line 149 of core/lib/Drupal/Core/Database/Query/Select.php).
Drupal\Core\Database\Query\Select->addTag('entity_query') (Line: 147)
Drupal\Core\Entity\Query\Sql\Query->prepare() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 640)
Drupal\Core\Entity\EntityStorageBase->loadByProperties(Array) (Line: 63)
Drupal\Core\Entity\EntityRepository->loadEntityByUuid('file', '77c7884c-561f-4921-9df3-141f20b6f0ec') (Line: 124)
Drupal\editor\Plugin\Filter\EditorFileReference->process('Continuing with the same example, if we create the same aggregation table but specifying that both the <em>Category</em> field and the <em>Subcategory</em> field are of type "rollup" (and in this order), the result would be the following:
Summarized table Rollup_Cat_Subcat =
SUMMARIZE(
Data,
ROLLUP(Data[Category], Data[Subcategory]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
In this case, 3 rows corresponding to the field located as the rightmost argument of the ROLLUP function (<em>Subcategory</em>) have been included, and then an additional row considering the two fields (<em>Category</em> and <em>Subcategory</em>).
Finally, if we repeat the table but changing the order of the arguments of the ROLLUP function:
Summarized table Rollup_Subcat_Cat =
SUMMARIZE(
Data,
ROLLUP(Data[Subcategory], Data[Category]),
"Sum", SUM(Data[Value]),
"Max", MAX(Data[Value]),
"Avg", AVERAGE(Data[Value])
)
...the result is similar: 6 new rows have been created corresponding to the field located more to the right of the arguments of the ROLLUP function, and an additional line considering the two fields.
', 'en') (Line: 118)
Drupal\filter\Element\ProcessedText::preRenderText(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 125)
__TwigTemplate_a7d6005c89ae729617b9a0c2bccb1776->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 46)
__TwigTemplate_804f7948456cfe20e11a34c43439c7c2->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array, Array) (Line: 43)
__TwigTemplate_c80c0b77898c75587c022d0756404fc4->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/classy/templates/field/field--text-long.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 74)
__TwigTemplate_94047fbdba6937b76a4479dfa1763452->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/node.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Return type of Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 10 of modules/contrib/google_analytics/src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php).
include('/var/www/vhosts/interactivechaos.ovh/httpdocs/modules/contrib/google_analytics/src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php') (Line: 578)
Composer\Autoload\ClassLoader::Composer\Autoload\{closure}('/var/www/vhosts/interactivechaos.ovh/httpdocs/modules/contrib/google_analytics/src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php') (Line: 432)
Composer\Autoload\ClassLoader->loadClass('Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet') (Line: 372)
google_analytics_page_attachments(Array) (Line: 313)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}(Object, 'google_analytics') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('page_attachments', Object) (Line: 310)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 288)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Use of "static" in callables is deprecated in Drupal\user\Entity\Role::postLoad() (line 172 of core/modules/user/src/Entity/Role.php).
Drupal\user\Entity\Role::postLoad(Object, Array) (Line: 423)
Drupal\Core\Entity\EntityStorageBase->postLoad(Array) (Line: 353)
Drupal\Core\Entity\EntityStorageBase->loadMultiple() (Line: 126)
eu_cookie_compliance_page_attachments(Array) (Line: 313)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}(Object, 'eu_cookie_compliance') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('page_attachments', Object) (Line: 310)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 288)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\views\ManyToOneHelper::$handler is deprecated in Drupal\views\ManyToOneHelper->__construct() (line 24 of core/modules/views/src/ManyToOneHelper.php).
Drupal\views\ManyToOneHelper->__construct(Object) (Line: 51)
Drupal\views\Plugin\views\filter\ManyToOne->defineOptions() (Line: 141)
Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 104)
Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 95)
Drupal\views\Plugin\views\filter\FilterPluginBase->init(Object, Object, Array) (Line: 44)
Drupal\views\Plugin\views\filter\InOperator->init(Object, Object, Array) (Line: 36)
Drupal\views\Plugin\views\filter\ManyToOne->init(Object, Object, Array) (Line: 25)
Drupal\options\Plugin\views\filter\ListField->init(Object, Object, Array) (Line: 894)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1045)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 903)
Drupal\views\ViewExecutable->initHandlers() (Line: 2633)
Drupal\views\Plugin\views\display\DisplayPluginBase->viewExposedFormBlocks() (Line: 35)
Drupal\views\Plugin\Block\ViewsExposedFilterBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 302)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_sidebar_first(Array, Array) (Line: 182)
Twig\Template->displayBlock('sidebar_first', Array, Array) (Line: 178)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_main(Array, Array) (Line: 182)
Twig\Template->displayBlock('main', Array, Array) (Line: 87)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 97)
__TwigTemplate_ed8fa9c8f2c296c9becadea6e6efe774->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\views\ManyToOneHelper::$handler is deprecated in Drupal\views\ManyToOneHelper->__construct() (line 24 of core/modules/views/src/ManyToOneHelper.php).
Drupal\views\ManyToOneHelper->__construct(Object) (Line: 51)
Drupal\views\Plugin\views\filter\ManyToOne->defineOptions() (Line: 228)
Drupal\views\Plugin\views\PluginBase->unpackOptions(Array, Array) (Line: 144)
Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 104)
Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 95)
Drupal\views\Plugin\views\filter\FilterPluginBase->init(Object, Object, Array) (Line: 44)
Drupal\views\Plugin\views\filter\InOperator->init(Object, Object, Array) (Line: 36)
Drupal\views\Plugin\views\filter\ManyToOne->init(Object, Object, Array) (Line: 25)
Drupal\options\Plugin\views\filter\ListField->init(Object, Object, Array) (Line: 894)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1045)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 903)
Drupal\views\ViewExecutable->initHandlers() (Line: 2633)
Drupal\views\Plugin\views\display\DisplayPluginBase->viewExposedFormBlocks() (Line: 35)
Drupal\views\Plugin\Block\ViewsExposedFilterBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 302)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_sidebar_first(Array, Array) (Line: 182)
Twig\Template->displayBlock('sidebar_first', Array, Array) (Line: 178)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_main(Array, Array) (Line: 182)
Twig\Template->displayBlock('main', Array, Array) (Line: 87)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 97)
__TwigTemplate_ed8fa9c8f2c296c9becadea6e6efe774->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\views\ManyToOneHelper::$handler is deprecated in Drupal\views\ManyToOneHelper->__construct() (line 24 of core/modules/views/src/ManyToOneHelper.php).
Drupal\views\ManyToOneHelper->__construct(Object) (Line: 51)
Drupal\views\Plugin\views\filter\ManyToOne->defineOptions() (Line: 228)
Drupal\views\Plugin\views\PluginBase->unpackOptions(Array, Array) (Line: 110)
Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 95)
Drupal\views\Plugin\views\filter\FilterPluginBase->init(Object, Object, Array) (Line: 44)
Drupal\views\Plugin\views\filter\InOperator->init(Object, Object, Array) (Line: 36)
Drupal\views\Plugin\views\filter\ManyToOne->init(Object, Object, Array) (Line: 25)
Drupal\options\Plugin\views\filter\ListField->init(Object, Object, Array) (Line: 894)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1045)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 903)
Drupal\views\ViewExecutable->initHandlers() (Line: 2633)
Drupal\views\Plugin\views\display\DisplayPluginBase->viewExposedFormBlocks() (Line: 35)
Drupal\views\Plugin\Block\ViewsExposedFilterBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 302)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_sidebar_first(Array, Array) (Line: 182)
Twig\Template->displayBlock('sidebar_first', Array, Array) (Line: 178)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_main(Array, Array) (Line: 182)
Twig\Template->displayBlock('main', Array, Array) (Line: 87)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 97)
__TwigTemplate_ed8fa9c8f2c296c9becadea6e6efe774->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Deprecated function: Creation of dynamic property Drupal\views\ManyToOneHelper::$handler is deprecated in Drupal\views\ManyToOneHelper->__construct() (line 24 of core/modules/views/src/ManyToOneHelper.php).
Drupal\views\ManyToOneHelper->__construct(Object) (Line: 38)
Drupal\views\Plugin\views\filter\ManyToOne->init(Object, Object, Array) (Line: 25)
Drupal\options\Plugin\views\filter\ListField->init(Object, Object, Array) (Line: 894)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1045)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 903)
Drupal\views\ViewExecutable->initHandlers() (Line: 2633)
Drupal\views\Plugin\views\display\DisplayPluginBase->viewExposedFormBlocks() (Line: 35)
Drupal\views\Plugin\Block\ViewsExposedFilterBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 302)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_sidebar_first(Array, Array) (Line: 182)
Twig\Template->displayBlock('sidebar_first', Array, Array) (Line: 178)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->block_main(Array, Array) (Line: 182)
Twig\Template->displayBlock('main', Array, Array) (Line: 87)
__TwigTemplate_c8b006727765bdbd2647614d70488e6c->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 97)
__TwigTemplate_ed8fa9c8f2c296c9becadea6e6efe774->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/yg_aesthetic/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 157)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)