Forum Discussion
Monthly Average from Daily Date Values
Hi figo12
You would need to create a New Measure
And then possibly put in the following code.
Average = DIVIDE(SUM('Tablename'[Total]),COUNTROWS('TableName'))- figo129 years ago
Helper I
Hi GilbertQ Thanks for your help, just a question, with the proposed formula, Checking the formula it says count rows, so not sure if it would count the rows for each month, since I am looking for the monthly average, for example january, that would have number 1 as the id on the month table.
Thanks again!
- GilbertQ9 years ago
Super User
Hi figo12,
The COUNTROWS just counts the number of rows.
So if you wanted to get the Average per month, you would either need to have a date table and create a relationship from your data's Date to the Date table.Or to use the built in time intelligence and use the Month.
This will allow it to show the average per month.
- figo129 years ago
Helper I
Hi GilbertQ I already have the date value on date table (01/01/2017) related to the Sales Table Date, thing is I have like 20 data sheets that I would need to create a new month column and relate it to the primary date table, I believed there was an easier method in order to accomplish the goal. But thanks for your sugggestion anyway.