Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
dunnno
New Member

Calculate numbers of days between milestones

Hi,

I work with items that i add everyday in my SP list. The ID column gives them a unique number. 

 

I'm looking for a formula that would show me how many days there were between the item ID'ed #1 and the one ID'ed #101, bewteen #101 and #201 and so on...

 

Can i adapt a formula which gives number of days between dates ? If so, any input pls ?

5 REPLIES 5
ribisht17
Super User
Super User

I don't that one is suitable to my needs.

 

The formula has to find every 100th item from a list of 2000 and counting.

 

Then it has to calculate the date between them :

==> how many days from ID#1 to ID#101, betwen #101 to #201 etc etc.

Hi @dunnno ,

 

Can you share some example data and expect result even if you can hand draw it.

 

Or, you can refer this example.

First, separate out your ids and tag them with the formula #1 to #100. Like below.

vchenwuzmsft_0-1651560461183.png


Second, calculate the number of days between using the measure.

Measure = VALUE(MAX('Table'[date])-MIN('Table'[date]))
 

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

IDDate
101/01/2022
......
10015/02/2022
......
20018/03/2022
......
30001/04/2022
......

 

I'd like a formula, or formulaS if it needs several to do it, to fetch every 100th item and calculate the number of days between them.

 

==>

Between the items #1 and #100, there's 46 days,

Between the items #100 and #200, there's 32 days,

Etc.

IDDate
101/01/2022
......
10015/02/2022
......
20013/03/2022
......
30025/04/2022
......

 

I'd like to know how many days there are between an item #1 and #100 and so on.

 

For example, let's say i make support tickets each time i receive a call from a customer.

Is it possible for a formula to find every hundrenth ticket and calculate the difference in days between the previous hundrenth one ?

 

Here in my table, between ID#1 and ID#100, there's 46 days, #100 to #200 there's 27 days etc.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors