- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Create a group with years
Hi everyone,
I would like to know if it is possible to create au "Group" with values, here my exemple :
"2024", "2023", etc.
Thank you in advance for you help,
LD
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creating a Group in Power BI
Select Your Column:
In the Data view, select the column that contains the values you want to group (e.g., a column with years).
Create a Group:
Right-click on the column header and select New Group.
Define the Group:
In the Groups dialog box, you can manually add the values you want to group together. For example, you can create a group for “2024” and “2023”.
Click on New Group and name it (e.g., “Year Group”).
Add the values “2024” and “2023” to this group.
Apply the Group:
Once you have defined your groups, click OK. The new group will be created and added to your Fields pane.
Use the Group in Visuals:
You can now use this group in your visuals. Drag the new group field to your visual to see the grouped data.
Example
Here’s a step-by-step example:
Select the Year Column:
Suppose you have a column named Year with values like “2024”, “2023”, etc.
Create a Group:
Right-click on the Year column header and select New Group.
Define the Group:
In the Groups dialog box, create a new group named “Recent Years”.
Add “2024” and “2023” to this group.
Apply the Group:
Click OK to create the group.
Use the Group in a Visual:
Drag the new “Recent Years” group to a visual to see the grouped data.
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creating a Group in Power BI
Select Your Column:
In the Data view, select the column that contains the values you want to group (e.g., a column with years).
Create a Group:
Right-click on the column header and select New Group.
Define the Group:
In the Groups dialog box, you can manually add the values you want to group together. For example, you can create a group for “2024” and “2023”.
Click on New Group and name it (e.g., “Year Group”).
Add the values “2024” and “2023” to this group.
Apply the Group:
Once you have defined your groups, click OK. The new group will be created and added to your Fields pane.
Use the Group in Visuals:
You can now use this group in your visuals. Drag the new group field to your visual to see the grouped data.
Example
Here’s a step-by-step example:
Select the Year Column:
Suppose you have a column named Year with values like “2024”, “2023”, etc.
Create a Group:
Right-click on the Year column header and select New Group.
Define the Group:
In the Groups dialog box, create a new group named “Recent Years”.
Add “2024” and “2023” to this group.
Apply the Group:
Click OK to create the group.
Use the Group in a Visual:
Drag the new “Recent Years” group to a visual to see the grouped data.
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-13-2024 08:08 AM | |||
08-15-2024 01:34 PM | |||
09-18-2024 07:48 AM | |||
08-22-2024 06:37 AM | |||
Anonymous
| 12-05-2023 11:24 AM |