Forum Discussion
tristanweeks47
3 years agoFrequent Visitor
Grouping Text by Month
Hello, I am trying to group closed accounts by month. The data i have is account type, weather the account is closed or not. So i have filtered this to be closed. Then the other data i have is d...
AjithPrasath
3 years agoResolver II
if you are using DirectQuery mode, the built-in date hierarchy will not be available. In this case, you will need to create a custom date hierarchy manually. To do this, follow these steps:
- In the Fields pane, right-click the date column and select New Column.
- In the New Column dialog box, enter a name for the new column and select Date/Time as the data type.
- In the Formula bar, type the following formula:
Code snippet
=YEAR([DateColumn])
4.Click OK.
Repeat steps 1-4 to create columns for the Quarter, Month, and Day.
Once you have created the columns for the Year, Quarter, Month, and Day, you can create a custom date hierarchy by following these steps:
- In the Fields pane, right-click the original Date column and select New Hierarchy.
- In the Create Hierarchy dialog box, select the Year, Quarter, Month, and Day columns.
- Click OK.
The custom date hierarchy will be added to the Fields pane. You can then use the hierarchy in your visuals to filter and slice your data by date.
tristanweeks47
3 years agoFrequent Visitor
I managed to do this but still came accross the same issue unfortunately