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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Days Cover Calculation Per Material

Days Cover Calacs.PNGHi There,

 

Can you please help me?

 

I'm trying to calculate the days stock coverage per Material for each week:

 

Please can you help me with suitable formulae to calculate as above?

 

The previous posts I have see only seem to work if there is only 1 Material in the table.

 

Best Regards

1 ACCEPTED SOLUTION

@Anonymous ,

 

You can create a table visual in power pivot and then drag the measure to the table visual.

 

Community Support Team _ Jimmy Tao

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

View solution in original post

5 REPLIES 5
PetrS
Frequent Visitor

Hi. I am sorry but dont understand the solution. I have the same problem I think. How to calculate days of cover . I have table contains fields: day,material,stock,demand. Tried many ways but wrong ways. Please could you be more "visual" for novice. Thank you a lot.

v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Generally, you may create a calculate column using DAX below:

Result =
CALCULATE (
    SUM ( Table[Days_Cover] ),
    FILTER (
        Table,
        Table[MATNR] = EARLIER ( Table[MATNR] )
            && Table[Year_WeekNo] = EARLIER ( Table[Year_WeekNo] )
    )
)

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Many thanks for your reply...

And what do I put for the Days_Cover calculation?

@Anonymous ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

 

@Anonymous ,

 

You can create a table visual in power pivot and then drag the measure to the table visual.

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.