Forum Discussion
rwong1
Helper III
4 years agoAVERAGE
Hi, How do I create another table that shows the monthly average of the NFE by month and year? I then will convert that to a line chart. Here is the sample data:
- Anonymous4 years ago
Hi rwong1 ,
Sample data:
Here's my solution.
1.Create a YearMonth column and a sort column. The sort column is used to sort the YearMonth column.
YearMonth = FORMAT([Date],"YYYY-MMM")sort = VALUE(FORMAT([Date],"YYYYMM"))2.Then you can drag the NFE column directly into the table and get the average.
3.Or you can create a measure.
Measure = CALCULATE(AVERAGE('Table'[NFE]),ALLEXCEPT('Table','Table'[YearMonth]))The line chart:
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tutu_in_YYC
Super User
4 years agoYou dont need to create another table. Just create a measure:
AverageNFE = AVERAGE( TableName[NFE])
And use that in a line chart.