Forum Discussion
Anonymous
7 years agoNot applicable
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...
- Anonymous7 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
Cmcmahan
Resident Rockstar
7 years agoI would use IF(ISBLANK()) here.
Something along the lines of
var Min_Country = IF(ISBLANK(MINX(X,[MIN])),0,MINX(X,[MIN]))
If it's blank, you give it a default value of zero, otherwise return the normal value.
Anonymous
7 years agoNot applicable
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
So this problem is closed