Forum Discussion
Grouping certain data by month
- 3 years ago
You can add a custom column in the "account" table with below M code to have "YYYYMM" format YearMonth values from [Date Closed] column. Apply the change to Power BI Desktop. Then use this new YearMonth column on X-axis of the column chart to replace the current Date Closed column.
Date.Year([Date Closed])*100+Date.Month([Date Closed])Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
You can add a custom column in the "account" table with below M code to have "YYYYMM" format YearMonth values from [Date Closed] column. Apply the change to Power BI Desktop. Then use this new YearMonth column on X-axis of the column chart to replace the current Date Closed column.
Date.Year([Date Closed])*100+Date.Month([Date Closed])
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.