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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Strategic Value

Hi everyone, I'm trying to calculate a strategic value, but I'm not sure how to do that in DAX. Below is logic and they come from one single table. Can you please help me have this in DAX?

Strategic Value Planned maintenance PV 30 years =
[((Planned maintenance PV 30 years – the lowest value of “Planned maintenance PV 30 years” field in the whole data set)) / ((Highest value of “Planned maintenance PV 30 years” field in the whole data set) – (Lowest value of “Planned maintenance PV 30 years” field in the whole data set))] * 100
 
Many thanks!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey, @amitchandak thanks for your help. 
I applied the below calculated column and it worked. 

Planned Maintenance Strategic Value =
var MAX_Value= MAX(Costs[Planned maintenance PV 30 years])
var Min_Value = MIN(Costs[Planned maintenance PV 30 years])
return 100-((Costs[Planned maintenance PV 30 years]-Min_Value)/(MAX_Value-Min_Value))*100

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous ,

 

M1 =

divide(

sum(Table[Planned maintenance]) -Min(Table[Planned maintenance]),

max(Table[Planned maintenance]) -Min(Table[Planned maintenance])

)

 

If needed

M2 = calculate([M1], all())

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

Hey, @amitchandak thanks for your help. 
I applied the below calculated column and it worked. 

Planned Maintenance Strategic Value =
var MAX_Value= MAX(Costs[Planned maintenance PV 30 years])
var Min_Value = MIN(Costs[Planned maintenance PV 30 years])
return 100-((Costs[Planned maintenance PV 30 years]-Min_Value)/(MAX_Value-Min_Value))*100
Anonymous
Not applicable

Hi, @amitchandak  I've had some progress. 
The M1 calculation above worked as a total (see 1st picture), but when I add the UPRN, I lose the values (2nd picture) How could I have these strategic values, but UPRN?  
Many thanks! 

ROG_BI22_0-1646236543200.png

ROG_BI22_1-1646236719716.png


Below are the measures I used.

Strategic Value SAP Rating =
divide(

sum(Costs[SAP Rating]) -[Min SAP Rating],

[Max SAP Rating] - [Min SAP Rating]
)

 

Strategic Value Planned maintenance PV 30 years =
divide(

sum(Costs[Planned maintenance PV 30 years]) -[Min Planned Maintenance PV 30 years],

[Max Planned Maintenance PV 30 years] - [Min Planned Maintenance PV 30 years]
)

Strategic Value Net Surplus =
divide(

sum(Costs[Net Surplus Generated from Sale]) -[Min Net Surplus Generated from Sale],

[Max Net Surplus Generated from Sale] - [Min Net Surplus Generated from Sale]
)

Strategic Value = Costs[Strategic Value SAP Rating]+Costs[Strategic Value Planned maintenance PV 30 years]+Costs[Strategic Value Net Surplus]/3
Icey
Community Support
Community Support

Hi @Anonymous ,

 


 

ROG_BI22_1-1646236719716.png

 

Which table does the "UPRN" come from? What's your model structure?

 

Could you create a sample .pbix file for test? Please don't contain any sensitive information.

 

Reference: How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

Thank you so much for your reply @amitchandak 
My Min and MAX(Table[Planned maintenance]) aren't giving the correct number. For MIN I get 0, and if I try this measure right here --> 

CALCULATE( MIN(Costs[Planned maintenance PV 30 years]), FILTER(Costs, Costs[Planned maintenance PV 30 years] <> 0 || Costs[Planned maintenance PV 30 years] <> BLANK())) I get a wrong number also. 

Below is the screenshot of what I have on excel, and when I click on the column the values for MIN/MAX a the bottom of the sheet are very different from my numbers in PBI.
ROG_BI22_0-1646219381927.png

 


Any help will be much appreciated. 

@Anonymous ,


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

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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