Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Minimum value problem with null value on high level aggregation

  Hello everyone, I have the following code Conditions_Legend = var X = SUMMARIZE(fact,fact[country],fact[WeekText],"MIN", RANDBETWEEN(1,40)+0) var Min_Country = MINX(X,[MIN]) return Min_C...
  • Anonymous's avatar
    Anonymous
    7 years ago

    I have actually used the following approach and did what the trick:

    var = SUMX(fact,SWITCH(TRUE(),ISBLANK([KPI Measure]),1,0))

    So this problem is closed