The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
Hey, @amitchandak thanks for your help.
I applied the below calculated column and it worked.
@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())
Hey, @amitchandak thanks for your help.
I applied the below calculated column and it worked.
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!
Below are the measures I used.
Hi @Anonymous ,
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.
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 -->
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |