Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to display the average total count for these 12 months?

My detail as below:

Dimension:

=[Date Created.autoCalendar.YearMonth]

Measure:

=Count({$ <Temp={'Task_17'}>*$<[Date Created.autoCalendar.YearMonth]={">=$(=AddMonths(MonthStart(Today()-20),-11))"}> } [SR No])

Subtitle:

=Count({$ <Temp={'Task_17'}>*$<[Date Created.autoCalendar.YearMonth]={">=$(=AddMonths(MonthStart(Today()-20),-11))"}> } [SR No])

*My subtitle show 3483. But what i want is 496/12=41.33. Please advise.

qi.PNG

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

Sum(Aggr(Count({$ <Temp={'Task_17'}>*$<[Date Created.autoCalendar.YearMonth]={">=$(=AddMonths(MonthStart(Today()-20),-11))"}> } [SR No]),[Date Created.autoCalendar.YearMonth]))/12


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Hi Kaushik,

By using your formula i get the average as 42.25. i think it include the null value.

i try to exclude them using this formula but it is not working.

My formula:

Sum(Aggr(Count({$ <Temp={'Task_17'}>*$<[SR No]-={"''"}>

*$<[Date Created.autoCalendar.YearMonth]={">=$(=AddMonths(MonthStart(Today()-20),-11))"}> }

[SR No]),[Date Created.autoCalendar.YearMonth]))/12


qi2.PNG

Please help. Thanks.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Can you share the sample data.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!