Forum Discussion

tristanweeks47's avatar
tristanweeks47
Frequent Visitor
3 years ago
Solved

Grouping certain data by month

Hello, so i have used directQuery to import data. I want to see Closed Accounts per month. As you can see i am seeing a bar for each individual day during said months. I want to group all of november...
  • v-jingzhang's avatar
    3 years ago

    Hi tristanweeks47 

     

    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.