This article describes the advanced usage of SUMMARIZECOLUMNS, including IGNORE, ROLLUPADDISSUBTOTAL, ROLLUPGROUP and NONVISUAL
mentioned above
It is recommended that before reading this article, you have read "DAX: Basic Principles and Usage of SUMMARIZECOLUMNS" or have mastered the basic usage of SUMMARIZECOLUMNS, because this article will not include this part. SUMMARIZECOLUMNS has built-in functions IGNORE, ROLLUPADDISSUBTOTAL, ROLLUPGROUP and NONVISUAL. These functions are not expanded with examples in the documentation and DAX.GUIDE , making it difficult for many readers to understand their specific usage. This article will expand on them through simple examples and concise language. , try to make it "clear" to readers as much as possible.
IGNORE
The SUMMARIZECOLUMNS function itself filters out rows where all measure values are empty, while the IGNORE function allows it to ignore null values for measures. as follows:
SUMMARIZECOL =
SUMMARIZECOLUMNS (
'DimProductCategory'[ProductCategoryName],
'DimDate'[FiscalMonth],
"SALES", SUM ( 'FactSales'[SalesQuantity] )
)
return:
If using IGNORE:
SUMMARIZECOL_IGNORE =
SUMMARIZECOLUMNS (
'DimProductCategory'[ProductCategoryName],
'DimDate'[FiscalMonth],
"SALES", IGNORE(SUM ( 'FactSales'[SalesQuantity] ))
)
The returned results contain rows with empty metric values: