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.
Hello Everyone
I want to calculate days starts with item purchese date to item transfer date , items can be more than ones in the table it means can be purchesd more than ones and for all branches , I want to calculate the days for each branch and sorted by dates if there are more than one purches order
Here is the source table
item | transaction number | type | date | decs | branch |
A | 01 | 3 | 01-01-2024 | purchase order | A |
A | 01 | 22 | 10-01-2024 | Transfer order | A |
A | 02 | 3 | 07-01-2024 | purchase order | A |
A | 02 | 22 | 14-01-2024 | transfer | A |
B | 03 | 3 | 01-01-2024 | purchase | A |
B | 04 | 3 | 01-01-2024 | purchase | B |
B | 03 | 22 | 13-01-2024 | transfer | B |
I want to Get the result like this
item | transaction number | branch | Days Count |
A | 01 | A | 9 |
A | 02 | A | 7 |
B | 04 | B | 12 |
so the last row should read 04?
BTW, where I come from Jan 1 to Jan 13 is 13 days, not 12 days.
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 |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |