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

Join 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.

Reply
amks
Frequent Visitor

Need to calculate values between 2 dates dynamically

Hi,

 

I have had production values since 2017. as of the date I want to calculate matured product production total based on the product warranty.

 

example:

 

Mfg. Month & YearMfg. Qty
(Nos)
Warranty Return Qty.(Nos)Warranty Return % 
Apr-192,340251.07% 
May-192,340251.07% 
Jun-192,340251.07% 
Jul-192,340251.07% 
Aug-192,340251.07% 
Sep-192,340251.07% 
Oct-192,340251.07% 
Nov-192,340251.07% 
Dec-192,340251.07% 
Jan-202,340251.07% 
Feb-202,340251.07% 
Mar-202,340251.07% 
Apr-202,340251.07% 
May-202,340251.07% 
Jun-202,340251.07% 
Jul-205,6401442.55% 
Aug-205,3531292.41% 
Sep-20840242.86% 
Oct-204,980340.68% 
Nov-203,600350.97% 
Dec-203,4141444.22% 
Jan-213,3021293.91% 
Feb-213,190240.75% 
Mar-213,078341.10% 
Apr-212,966351.18% 
May-212,8541445.05% 
Jun-212,7421294.70% 
Jul-212,630240.91% 
Aug-212,518341.35% 
Sep-212,406351.45% 
Oct-212,2951446.28% 
Nov-212,1831295.91% 
Dec-212,071241.16% 
Jan-221,959341.74% 
Feb-221,847351.90% 
Mar-221,7351448.30% 
Apr-221,6231297.95% 
May-221,511241.59% 
Jun-221,399342.43% 
Jul-221,287352.72% 
Aug-221,17614412.25% 
Sep-221,06412912.13% 
Oct-22952242.52% 
Nov-22840344.05% 
Dec-22728354.81% 
 1,07,2812,5712.40% 
   Cumulative warranty 

 

need below calculation Dax in power BI

Matured warranty calculation:Today-Warranty period offred months 
Today20-Jan-23 

Warranty offered Months

- this is dynamic & varies from product to product

21 
Matured warranty20-Apr-21 

Need to calculate total production & Claims from Apr-21 to Apr-2019 backward)

- this is dynamic & varies from product to product

  
Production Apr-19 to Apr-21 71462
Warranty Return Qty Apr-19 to Apr-21 1,107
 Mature wararnty 1.55%

 

support is required, please

thanks in advance.

3 REPLIES 3
amks
Frequent Visitor

Dear  lbendlin,

 

Thanks for your input.

 

but I need Dax to calculate the production & return quantity based on the dates. not total warranty %

like: if my product warranty matured till Apr'21 I need to calculate the total from apr'21 to back wards & extract the return percentage from it .( I will do Edate formula in excel & sum commutative from that date to backdated )

the mature warranty date varies from product to product which I have in another table.

 

I tried dates between & dateadd but couldn't get exact results.

 

 

Your date slicer already does all the work for you.  You can adjust the measure I posted to show the individual sums, or use implicit measures.

lbendlin
Super User
Super User

something like this?

lbendlin_0-1674319396134.png

see attached

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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