Forum Discussion
AVERAGE
- 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.
Use Year-Month as data type Text and visualize that.
For future reports, i recommend having a separate date/calendar table
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
It still didn't work. Please advise.
- Tutu_in_YYC4 years ago
Super User
Can you provide the pbix?
- rwong14 years ago
Helper III
Is there any other way to do this besides sharing the file? It has confidential info in it.
- Tutu_in_YYC4 years ago
Super User
See if this helps ( or if this is what you are trying to achieve )