Forum Discussion
JillHenninger
6 years agoHelper I
Averagex Challenge
Hi there. I'm building out a series of line graphs for my report. In my data, I have dollars, weeks, and departments for MY accounts, and for all other accounts. I want an average share line over the...
Greg_Deckler
6 years agoCommunity Champion
Avg of All Dept, Full Year 1 = AVERAGEX(ALL('Table'),[Value])
Avg of All Dept, Full Year 2 = AVERAGEX(FILTER(ALL('Table'),[Year]=YEAR(TODAY())),[Value])
Avg of Filtered Dept, Full Year 1 = AVERAGEX(ALLEXCEPT('Table'[Department]),[Value])
Avg of Filtered Dept, Full Year 2 = AVERAGEX(FILTER(ALL('Table'),[Year]=YEAR(TODAY()) && [Department] = MAX([Department])),[Value])
Going to be something along those lines.
Avg of All Dept, Full Year 2 = AVERAGEX(FILTER(ALL('Table'),[Year]=YEAR(TODAY())),[Value])
Avg of Filtered Dept, Full Year 1 = AVERAGEX(ALLEXCEPT('Table'[Department]),[Value])
Avg of Filtered Dept, Full Year 2 = AVERAGEX(FILTER(ALL('Table'),[Year]=YEAR(TODAY()) && [Department] = MAX([Department])),[Value])
Going to be something along those lines.