Forum Discussion
Column total as average
- 4 years ago
jonathanmathes , You can switch total to avg or sum depending on need using isinscope
if(isinscope(Table[Year]) && Not(Isinscope(Table[Month])) , sumx(summarize(Table, Table[Year], Table[Month], "_1", [measure]), [_1]), [Measure])
or
if(isinscope(Table[Year]) && Not(Isinscope(Table[Month])) , AverageX(summarize(Table, Table[Year], Table[Month], "_1", [measure]), [_1]), [Measure])
jonathanmathes , You can switch total to avg or sum depending on need using isinscope
if(isinscope(Table[Year]) && Not(Isinscope(Table[Month])) , sumx(summarize(Table, Table[Year], Table[Month], "_1", [measure]), [_1]), [Measure])
or
if(isinscope(Table[Year]) && Not(Isinscope(Table[Month])) , AverageX(summarize(Table, Table[Year], Table[Month], "_1", [measure]), [_1]), [Measure])
- jonathanmathes4 years agoRegular Visitor
I have never used isinscope, I will read about it and test it.
post the result laterThanks