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

How to periodically minus a value after a certain period

Hi All,

 

I have to calculate and create an ROI. I have accounted for the initial CAPEX but am trying to figure out how to minus the operating cost (which is a measure) every 54 days. 

 

What is the dax code I have to implement? 

 

Capture1.JPGCapture2.JPG

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

@amitchandak This is what I want to achieve. Instead of every 10 days where the ROI decreases by 1000 due to operating cost, in the context of my actual work required, I need the ROI to decrease by my measure 'Operating Cost' every 54 days. 

 

"E-Bin Slider Value" is the initial cost and hence is negative on day 0. 

 

Attached is an example of what I'm trying to achieve. 

 

Capture.JPG

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.