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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate 90% fillrate

Hello,

 

I have data table with tickets for multiple issues per dates as shown below. And from which, the TAT is calculated in new column.

In another table, there is index with days from 0-1000.

https://drive.google.com/open?id=1s51kbruRyDzq7fsG2J08Pnrt0XYTHN9Y 

 

Now would like to calculate in new column - new table

1) Count of tickets against each day mentioned in index

2) Avg of tickets for each day

3) Cummulative avg

4) Finally a formula which works in excel to determine the 90% fillrate

=IF(AND(I2<0.9,I3>=0.9),($F2+(0.9-I2)/(I3-I2)),0)

where "I" is Cu Avg and "F" is days.

table below for ref.

Days# of TicketsAvgCu Avg90% Fill Rate
0433%33%0
118%42%0
2325%67%0
318%75%0
418%83%0
500%83%5.8
618%92%0
700%92%0
800%92%0
918%100%0

 

Thanks & Regards,

CS

 

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please tell me what is the logic of the # of Tickets in your scenario? Based on that, we can create the calculated columns as below to work on it.

 

Avg_ = DIVIDE('Fillrate_'[# of Tickets],SUM('Fillrate_'[# of Tickets]))
cu avg _ = CALCULATE(SUM('Fillrate_'[Avg_]),FILTER('Fillrate_','Fillrate_'[Days]<=EARLIER('Fillrate_'[Days])))
Fillrate_ = 
IF (
    AND ( 'Fillrate_'[Avg_] < 0.9, 'Fillrate_'[cu avg _] >= 0.9 ),
    DIVIDE (
        'Fillrate_'[Days] + ( 0.9 - 'Fillrate_'[Avg_] ),
        ( 'Fillrate_'[cu avg _] - 'Fillrate_'[Avg_] ),
        0
    )
)

 2.PNG

 

For more details, please check the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi there,

in this AND condition

AND ( 'Fillrate_'[Avg_] < 0.9, 'Fillrate_'[cu avg _] >= 0.9 )

shouldn't it be AND ('Fillrate_'[cu avg<0.9 ? 

 

And is it possible to adapt this formula to calculate the 90% fill rate with a condition? For instance assuming there are different categories of tickets ? 

Anonymous
Not applicable

Hello,

But what does this fill rate calculate, it isn't the days needed to fulfill 90% of the tickets, right?

 

Thanks,

Mihnea

Anonymous
Not applicable

Hi,

Thanks for your support here!

# of tickets is distinct count of tickets per ageing.

Would you mind showing the samelogic in measures than column.

 

Regards,

CS

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.