Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Issue with SUMX including null values in formula

I have the following dataset that includes a date, a store ID, and a profit value for that month. One site has not compiled it's report yet for the time frame:   Date ID Profit 10/1/2019 ...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Positive Values = SUMX(
    SUMMARIZE(

        FILTER(

            Table,

            NOT(ISBLANK(Table[Profit]))

        ),

        Table[ID]

    ),
    IF(CALCULATE(SUM(Table[Profit])) >= 0, 1 , BLANK()))