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

Returning a year accounting for a percent increase in a inequality

Im having serious issues trying to come up with a formula maybe someone can help me.

.02x(current maintenance cost)<=Vehicle value This is the formula I want to use with the associated colunms . And the value I want is X which will be 1- whatever untill maintenance  cost is almost over vehicle value. I know then I will add x+current year. And thats when the vehicle will expire based on its maintenance cost. Any ideas???

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You can create a calculated column like this.

Peplacement = 
VAR a = [Current Mait Price] * 0.2 + [Current Mait Price]
VAR Min_x = DIVIDE( [Vehicle Value], a, BLANK() )
RETURN
Min_x + [Current Year]

v-lionel-msft_0-1595209521784.png

 

Best regards,
Lionel Chen

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

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format?

Anonymous
Not applicable

rabbouni_1-1594963414556.png

The formula for the forumla table is actually =(x)*(Current Mait Price*0.2+Current Mait Price)>= Vehicle Value

And I want X returned from this formula to do x+current year to get the year that the vehicle should be replaced. And the goal is to this in Power Bi not Excel. 

Hi @Anonymous ,

 

You can create a calculated column like this.

Peplacement = 
VAR a = [Current Mait Price] * 0.2 + [Current Mait Price]
VAR Min_x = DIVIDE( [Vehicle Value], a, BLANK() )
RETURN
Min_x + [Current Year]

v-lionel-msft_0-1595209521784.png

 

Best regards,
Lionel Chen

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

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.