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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure to create fillrate based on dynamic

Hello,

 

Could somebody help solving in getting cumulative avg and find fillrate value.

Am currently stuck where running total showing 100%, and when this is corrected, need new measure which shows fillrate value.

Fillrate formula used in excel as below:

=IF(AND(D3<0.9,D4>=0.9),($A3+(0.9-D3)/(D4-D3)),0)

where D value is derived from "running total" and A is from TAT

TAT # of Incidents Avg Running Total Fillrate
0 1 0.24% 0.24% 0.00
1 45 10.69% 10.93% 0.00
2 276 65.56% 76.48% 0.00
3 47 11.16% 87.65% 3.31
4 32 7.60% 95.25% 0.00
5 14 3.33% 98.57% 0.00
6 6 1.43% 100.00% 0.00

 

Please be aware that # of incidents is dynamic to dates in pbix slicer attached.

 

Thanks,

CS

 

 

10 REPLIES 10
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this thread for cumulative average:https://community.powerbi.com/t5/Desktop/Dynamic-rolling-average-based-on-slicer-selection/m-p/928540 

If the problem persists,could you please share sample pbix with dummy data?(Please mask any sensitive data before uploading)

 

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

 

amitchandak
Super User
Super User

@Anonymous ,

I checked the file But rename at visual level making it difficult to understand.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

Hello,

Please find the new pbix with actual field names on visual.

 

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

 

Thanks,

CS

 

Hi @Anonymous ,

 

Please try the DAX below:

Measure 4 =
DIVIDE (
    COUNT ( Sheet1[order_no] ),
    CALCULATE (
        COUNT ( Sheet1[order_no] ),
        ALLEXCEPT ( Sheet1, Sheet1[hp_receive_date], Sheet1[order_no] )
    )
) * 100
RunningTotal =
SUMX (
    FILTER (
        ALLSELECTED ( Sheet1[order_to_delv] ),
        Sheet1[order_to_delv] <= MAX ( Sheet1[order_to_delv] )
    ),
    'Key Measures SOTAT'[Measure 4]
)

test_cum.PNG

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

 

Anonymous
Not applicable

@V-lianl-msft 

Thank you very much! This worked for me.

Could you help with another part which works in excel with below formula:

Fillrate formula used in excel as below:

=IF(AND(D3<0.9,D4>=0.9),($A3+(0.9-D3)/(D4-D3)),0)

Where D is RunningTotal and A is order_to_delv

 

Regards,

CS

 

Hi @Anonymous ,

 

I'm sorry. I tried my best to get the fillrate value through DAX calculation, but it didn't work.

 

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

 

Anonymous
Not applicable

@v-easonf-msft ,

 

Would you be able to help here, like you provided DAX in new column for similar request.

 

Thanks,

CS

 

Hi , @Anonymous 

Refer to  your this post:

https://community.powerbi.com/t5/Desktop/Create-measure-to-obtain-fillrate-in-days/m-p/977903#M467230

 

If your problem has been solved, please mark the helpful replies as Answered to close this thread.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@V-lianl-msft  Thank you!

 

Greg_Deckler
Community Champion
Community Champion

So a running total generally done like this:

 

Running Total Column =
  VAR __Table = FILTER('Table',[TAT] <= EARLIER([TAT]))
RETURN
  SUMX(__Table,[Avg])

 

Not sure I 100% on understanding what you want though.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.