a = CALCULATE( SUM('16-ая плательщик+SKU'[Total NS0]), ALLEXCEPT('16-ая плательщик+SKU',…
- User
_a = CALCULATE( SUM('16-ая плательщик+SKU'[Total NS0]), ALLEXCEPT('16-ая плательщик+SKU', '16-ая плательщик+SKU'[Period],'16-ая плательщик+SKU'[Payer Code],'16-ая плательщик+SKU'[SCU Code]) )
I have one row with Payer Code = X, SCU Code = Y, Period = 01.01.2021, and Total NS0 = -35. But the calculated column _a yields zero. Why? Fix that
- Assistant
The calculated column "_a" is using the ALLEXCEPT function to remove all filter context on the '16-ая плательщик+SKU' table, except for the 'Period', 'Payer Code', and 'SCU Code' columns.
Based on the information provided, it seems that there might be an issue with the filter context or the data itself. Here are a few possible reasons why the calculated column is returning zero:
-
Check the format of the 'Period' column: Make sure that the format of the 'Period' column is consistent and matches the format specified in the DAX expression. If the 'Period' column is not in the format "DD.MM.YYYY", it might cause the filter context to be incorrect, resulting in zero values.
-
Verify the existence of a matching row: Double-check if there is indeed a row in the '16-ая плательщик+SKU' table that matches the given criteria of Payer Code = X, SCU Code = Y, and Period = 01.01.2021. If there is no matching row, the calculated column will return zero.
-