Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
HI,
I have below Source dataset
Source data | ||||
Employee ID | Function | Start Date | End Date | Days |
A001 | PM | 2024-01-01 | 2024-01-31 | 31 |
A001 | PM | 2024-02-01 | 2024-02-15 | 15 |
A001 | Consultant | 2024-02-16 | 2024-02-29 | 14 |
A001 | PM | 2024-03-01 | 2024-03-31 | 31 |
A001 | Consultant | 2024-04-01 | 2024-04-30 | 30 |
121 |
And i was hoping to produce the below summary
Target summary | ||||
Employee ID | Function | Start Date | End Date | Days |
A001 | PM | 2024-01-01 | 2024-02-15 | 46 |
A001 | Consultant | 2024-02-16 | 2024-02-29 | 14 |
A001 | PM | 2024-03-01 | 2024-03-31 | 31 |
A001 | Consultant | 2024-04-01 | 2024-04-30 | 30 |
121 |
when using Group by function for Employee ID and Function with min for start date and max for end date. I got the below summary which is not correct.
Group by Emplee ID and Function. - Incorrect Summary | ||||
Employee ID | Function | Start Date | End Date | Days |
A001 | PM | 2024-01-01 | 2024-03-31 | 91 |
A001 | Consultant | 2024-02-16 | 2024-04-30 | 75 |
Incorrect | 166 |
Does any expert have any good solution? Many thanks in advance.
Solved! Go to Solution.
Try adding the final parameter for the Table.Group function. Before the end parentheses, add ", GroupKind.Local".
--Nate
Hi Nate, Many thanks for your prompt response. i works perfectly. Calvin
Try adding the final parameter for the Table.Group function. Before the end parentheses, add ", GroupKind.Local".
--Nate
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
13 | |
11 | |
8 | |
8 |
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
7 |